Merge pull request #368 from ravselj/cmake_debug_postfix

CMake changes
This commit is contained in:
Mateusz Łoskot
2015-08-03 10:30:18 +02:00
2 changed files with 4 additions and 1 deletions

View File

@@ -86,6 +86,9 @@ if(NOT MSVC)
set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES ${DL_INCLUDE_DIR})
add_definitions(-DHAVE_DL=1)
endif()
else() #MSVC
# This flag enables multi process compiling for Visual Studio 2005 and above
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()
if(Boost_FOUND)

View File

@@ -63,7 +63,7 @@ if (SOCI_SHARED)
endif()
add_definitions(-DSOCI_LIB_PREFIX="${CMAKE_SHARED_LIBRARY_PREFIX}soci_"
-DSOCI_LIB_SUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}")
-DSOCI_LIB_SUFFIX="${CMAKE_DEBUG_POSTFIX}${CMAKE_SHARED_LIBRARY_SUFFIX}")
#
# Core static library