Revision history [back]

Call catkin_make -DCMAKE_BUILD_TYPE=Release to turn on the default optimization flags for release builds. -O3 should be in there, as far as I know.

Otherwise, you can add compile flags on a per node basis by specifying add_definitions(-DCMAKE_CXX_FLAGS="-O3" ) in the CMakeLists.txt. However, I'm not sure how this is handled then in combination with a build type.

Call catkin_make -DCMAKE_BUILD_TYPE=Release to turn on the default optimization flags for release builds. -O3 should be in there, as far as I know.

Otherwise, you can add compile flags on a per node basis by specifying add_definitions(-DCMAKE_CXX_FLAGS="-O3" add_definitions(-DCMAKE_CXX_FLAGS=-O3 ) in the CMakeLists.txt. However, I'm not sure how this is handled then in combination with a build type.

Call catkin_make -DCMAKE_BUILD_TYPE=Release to turn on the default optimization flags for release builds. -O3 should be in there, as far as I know.

Otherwise, you can add compile flags on a per node basis by specifying add_definitions(-DCMAKE_CXX_FLAGS=-O3 )set_target_properties(<TARGET> PROPERTIES COMPILE_FLAGS "-O3") in the CMakeLists.txt. However, I'm not sure how this is handled then in combination with a build type.