aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPaul Harris <paulharris@computer.org>2013-06-02 17:20:25 +0800
committerPaul Harris <paulharris@computer.org>2013-06-02 22:00:32 +0800
commit2fd66fab1afe78eb1add6b2ba6ffb1934aa30dd1 (patch)
tree9f8f47305117bd6f9ad7901dbc6027d1953b1683 /CMakeLists.txt
parent5cc594c9e8bc01f9531f80aba82c9775bba94c18 (diff)
downloadjansson-2fd66fab1afe78eb1add6b2ba6ffb1934aa30dd1.zip
jansson-2fd66fab1afe78eb1add6b2ba6ffb1934aa30dd1.tar.gz
jansson-2fd66fab1afe78eb1add6b2ba6ffb1934aa30dd1.tar.bz2
Adjust CMakeLists.txt and .def: add _d postfix onto jansson_d.lib/dll
Had to remove the "LIBRARY" line from jansson.def, which was optional, and was overriding CMake's desire for a specific name.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e7f8da4..cdad582 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,14 @@ SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
+# Give the debug version a different postfix for windows,
+# so both the debug and release version can be built in the
+# same build-tree on Windows (MSVC).
+IF (WIN32)
+ SET (CMAKE_DEBUG_POSTFIX "_d")
+ELSE (WIN32)
+ENDIF (WIN32)
+
# This is how I thought it should go
# set (JANSSON_VERSION "2.3.1")
# set (JANSSON_SOVERSION 2)