--- CMakeLists.txt.orig 2020-10-17 21:51:02 UTC +++ CMakeLists.txt @@ -64,7 +64,7 @@ set(DART_MINOR_VERSION "9") set(DART_PATCH_VERSION "5") set(DART_VERSION "${DART_MAJOR_VERSION}.${DART_MINOR_VERSION}.${DART_PATCH_VERSION}") set(DART_PKG_DESC "Dynamic Animation and Robotics Toolkit.") -set(DART_PKG_EXTERNAL_DEPS "eigen, ccd, fcl, assimp, boost") +set(DART_PKG_EXTERNAL_DEPS "eigen3, ccd, fcl, assimp") #=============================================================================== # Build options @@ -202,7 +202,7 @@ elseif(CMAKE_COMPILER_IS_GNUCXX) if(GCC_VERSION VERSION_LESS 5.3.1) message(FATAL_ERROR "The installed g++ version is ${GCC_VERSION}. ${PROJECT_NAME} requires g++ 5.3.1 or greater.") endif() - set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") + set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-omit-frame-pointer -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls") if(DART_FAST_DEBUG) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O1") @@ -228,7 +228,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") if("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") endif() - set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") + set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-g -fno-omit-frame-pointer -fno-inline-functions -fno-optimize-sibling-calls") if(DART_FAST_DEBUG) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O1") @@ -293,20 +293,20 @@ if(TARGET dart AND NOT DART_BUILD_DARTPY) if(MSVC) # add_subdirectory(examples) else() - add_subdirectory(examples EXCLUDE_FROM_ALL) - get_property(examples GLOBAL PROPERTY DART_EXAMPLES) - add_custom_target(examples DEPENDS ${examples}) + #add_subdirectory(examples EXCLUDE_FROM_ALL) + #get_property(examples GLOBAL PROPERTY DART_EXAMPLES) + #add_custom_target(examples DEPENDS ${examples}) endif() if(DART_VERBOSE) message(STATUS "") message(STATUS "[ Examples ]") - foreach(example ${examples}) - message(STATUS "Adding example: ${example}") - endforeach(example ${examples}) - else(DART_VERBOSE) - list(LENGTH examples examples_length) - message(STATUS "Adding ${examples_length} examples") + #foreach(example ${examples}) + # message(STATUS "Adding example: ${example}") + #endforeach(example ${examples}) + #else(DART_VERBOSE) + #list(LENGTH examples examples_length) + #message(STATUS "Adding ${examples_length} examples") endif(DART_VERBOSE) # Add a "tutorials" target to build tutorials.