+ use nodefaultlib linker flag for modules

This commit is contained in:
wmayer
2015-07-27 11:52:19 +02:00
parent d95003e92c
commit 51f0e99d7b
8 changed files with 37 additions and 2 deletions

View File

@@ -66,7 +66,29 @@ add_library(
${PYAREA_SRC}
)
target_link_libraries(area ${Boost_LIBRARIES})
if(MSVC)
set(area_LIBS
${Boost_LIBRARIES}
${PYTHON_LIBRARIES}
debug MSVCRTD.LIB
debug MSVCPRTD.LIB
optimized MSVCRT.LIB
optimized MSVCPRT.LIB
)
elseif(MINGW)
set(area_LIBS
${Boost_LIBRARIES}
${PYTHON_LIBRARIES}
Rpcrt4.lib
)
else(MSVC)
set(area_LIBS
${Boost_LIBRARIES}
${PYTHON_LIBRARIES}
)
endif(MSVC)
target_link_libraries(area ${area_LIBS})
SET_BIN_DIR(area area)
SET_PYTHON_PREFIX_SUFFIX(area)