diff --git a/cartographer_ros/CMakeLists.txt b/cartographer_ros/CMakeLists.txt index dd2f2af..e8590a4 100644 --- a/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/CMakeLists.txt @@ -104,7 +104,12 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${LUA_INCLUDE_DIR}) # PCL target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${PCL_INCLUDE_DIRS}) target_link_libraries(${PROJECT_NAME} PUBLIC ${PCL_LIBRARIES}) +set(BLACKLISTED_PCL_DEFINITIONS " -march=native -msse4.2 -mfpmath=sse ") foreach(DEFINITION ${PCL_DEFINITIONS}) + list (FIND BLACKLISTED_PCL_DEFINITIONS "${DEFINITION}" DEFINITIONS_INDEX) + if (${DEFINITIONS_INDEX} GREATER -1) + continue() + endif() set(TARGET_COMPILE_FLAGS "${TARGET_COMPILE_FLAGS} ${DEFINITION}") endforeach()