Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5904431

Browse files
fix compilation in indigo
1 parent 314ad46 commit 5904431

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ set(BEHAVIOR_TREE_LIBRARY ${PROJECT_NAME})
3737

3838
# Update the policy setting to avoid an error when loading the ament_cmake package
3939
# at the current cmake version level
40-
cmake_policy(SET CMP0057 NEW)
40+
if(POLICY CMP0057)
41+
cmake_policy(SET CMP0057 NEW)
42+
endif()
43+
4144
find_package(ament_cmake)
4245

4346
if ( ament_cmake_FOUND )

0 commit comments

Comments
 (0)