From 9ee445b800f8404469594d3ab85bb314f01a16e8 Mon Sep 17 00:00:00 2001 From: Jack O'Quin Date: Tue, 29 Nov 2016 11:14:15 -0600 Subject: [PATCH] bwi_mapper: fix CMake policy CMP0037 warnings (#83) --- bwi_mapper/CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bwi_mapper/CMakeLists.txt b/bwi_mapper/CMakeLists.txt index 4fd2b3f6..247a9984 100644 --- a/bwi_mapper/CMakeLists.txt +++ b/bwi_mapper/CMakeLists.txt @@ -72,18 +72,18 @@ target_link_libraries(bwi_mapper #binaries set(node_targets) foreach(node generate_graph view_graph prepare_graph) - add_executable(${PROJECT_NAME}/${node} src/nodes/${node}.cpp) - set_target_properties(${PROJECT_NAME}/${node} PROPERTIES OUTPUT_NAME "${node}") - target_link_libraries(${PROJECT_NAME}/${node} bwi_mapper) - list(APPEND node_targets ${PROJECT_NAME}/${node}) + add_executable(${PROJECT_NAME}_${node} src/nodes/${node}.cpp) + set_target_properties(${PROJECT_NAME}_${node} PROPERTIES OUTPUT_NAME "${node}") + target_link_libraries(${PROJECT_NAME}_${node} bwi_mapper) + list(APPEND node_targets ${PROJECT_NAME}_${node}) endforeach() #test binaries foreach(node test_circle test_map_loader test_voronoi test_dfs test_graph) - add_executable(${PROJECT_NAME}/${node} test/${node}.cpp) - set_target_properties(${PROJECT_NAME}/${node} PROPERTIES OUTPUT_NAME "${node}") - target_link_libraries(${PROJECT_NAME}/${node} bwi_mapper) - list(APPEND node_targets ${PROJECT_NAME}/${node}) + add_executable(${PROJECT_NAME}_${node} test/${node}.cpp) + set_target_properties(${PROJECT_NAME}_${node} PROPERTIES OUTPUT_NAME "${node}") + target_link_libraries(${PROJECT_NAME}_${node} bwi_mapper) + list(APPEND node_targets ${PROJECT_NAME}_${node}) endforeach() #############