diff options
| author | Charles Karney <charles@karney.com> | 2015-03-03 22:17:02 +0000 |
|---|---|---|
| committer | Charles Karney <charles@karney.com> | 2015-03-03 22:17:02 +0000 |
| commit | ed9bcafef638ea449235a3e307b943e8a8fe1557 (patch) | |
| tree | 864b49a99580bf298036213653fc9530396bbdd8 /CMakeLists.txt | |
| parent | 135253886bce8579c6b1a93d93697df30e93065c (diff) | |
| download | PROJ-ed9bcafef638ea449235a3e307b943e8a8fe1557.tar.gz PROJ-ed9bcafef638ea449235a3e307b943e8a8fe1557.zip | |
Append _d to debug versions of library and tools so that release and debug versions can be installed together
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2645 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f30b1a6b..6b3734b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,12 @@ if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE Release) endif () +if (MSVC OR CMAKE_CONFIGURATION_TYPES) + # For multi-config systems and for Visual Studio, the debug version of + # the library has _d appended. + set (CMAKE_DEBUG_POSTFIX _d) +endif () + option(PROJ4_TESTS "Enable build of collection of PROJ4 tests" ON) boost_report_value(PROJ4_TESTS) if(PROJ4_TESTS) |
