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) diff --git a/src/jansson.def b/src/jansson.def index 6b2c8a7..8cc2e9c 100644 --- a/src/jansson.def +++ b/src/jansson.def @@ -1,5 +1,3 @@ -LIBRARY "jansson" - EXPORTS json_delete json_true