aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2016-12-18 17:35:30 +0100
committerGitHub <noreply@github.com>2016-12-18 17:35:30 +0100
commitaa01cde9c5b69b6a5670c902dee2834c72a305e2 (patch)
tree1e2a16a98b34c9f5591d5f07afdbd1fd7997d526 /src
parent4cc53290ec16915fc0ae6d2952d80c55e113284e (diff)
parent189f970038f1eea387e4045aa48167b4f0e4b3fd (diff)
downloadPROJ-aa01cde9c5b69b6a5670c902dee2834c72a305e2.tar.gz
PROJ-aa01cde9c5b69b6a5670c902dee2834c72a305e2.zip
Merge pull request #452 from tfili/no-bins-cmake
Updated CMakeLists to only set the debug postfix if the target is being built
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 8d7e7d1c..eec7ddec 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -24,23 +24,29 @@ endif ()
if(BUILD_CS2CS)
include(bin_cs2cs.cmake)
+ set(BIN_TARGETS ${BIN_TARGETS} cs2cs)
endif(BUILD_CS2CS)
if(BUILD_PROJ)
include(bin_proj.cmake)
+ set(BIN_TARGETS ${BIN_TARGETS} binproj)
endif(BUILD_PROJ)
if(BUILD_GEOD)
include(bin_geod.cmake)
include(bin_geodtest.cmake)
+ set(BIN_TARGETS ${BIN_TARGETS} geod)
endif(BUILD_GEOD)
if(BUILD_NAD2BIN)
include(bin_nad2bin.cmake)
+ set(BIN_TARGETS ${BIN_TARGETS} nad2bin)
endif(BUILD_NAD2BIN)
if (MSVC OR CMAKE_CONFIGURATION_TYPES)
- # Add _d suffix for your debug versions of the tools
- set_target_properties (cs2cs binproj geod nad2bin PROPERTIES
- DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
+ if(BIN_TARGETS)
+ # Add _d suffix for your debug versions of the tools
+ set_target_properties (${BIN_TARGETS} PROPERTIES
+ DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
+ endif(BIN_TARGETS)
endif ()