diff options
| author | Tom Fili <tfili@agi.com> | 2016-11-17 17:40:42 -0500 |
|---|---|---|
| committer | Tom Fili <tfili@agi.com> | 2016-11-17 17:40:42 -0500 |
| commit | 189f970038f1eea387e4045aa48167b4f0e4b3fd (patch) | |
| tree | 769587e2a382e8fb7aef3865d63b08c2b871b985 /src/CMakeLists.txt | |
| parent | 6e44660c2caa645d211dad2c1b114debcd268bfc (diff) | |
| download | PROJ-189f970038f1eea387e4045aa48167b4f0e4b3fd.tar.gz PROJ-189f970038f1eea387e4045aa48167b4f0e4b3fd.zip | |
Updated CMakeLists to only set the debug postfix if the target is being built.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 12 |
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 () |
