Skip to content
Snippets Groups Projects
Commit 1b8230fc authored by Matthias Puchner's avatar Matthias Puchner
Browse files

fix windows warning LNK4098 (defaultlib 'XYZ' conflicts with use of other...

fix windows warning LNK4098 (defaultlib 'XYZ' conflicts with use of other libs) also for debug (debug compilation was broken)
parent f31d2676
No related branches found
No related tags found
1 merge request!241fix broken debug compilation (in context of handling windows warning LNK4098)
Pipeline #42579 passed
......@@ -12,8 +12,9 @@ add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY=1)
message(STATUS "Disabling static align for Eigen")
string(APPEND CMAKE_CXX_FLAGS " /MD /MP /D_USE_MATH_DEFINES /wd4005 /wd4068 /wd4244 -I${CMAKE_SOURCE_DIR}/Wrap -FIw32pragma.h")
string(APPEND CMAKE_SHARED_LINKER_FLAGS
" /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib")
string(APPEND CMAKE_SHARED_LINKER_FLAGS_RELEASE " /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:msvcrtd.lib")
string(APPEND CMAKE_SHARED_LINKER_FLAGS_DEBUG " /NODEFAULTLIB:libcmt.lib")
# --- switch ON edit and continue; only in DEBUG configuration
add_compile_options($<$<CONFIG:Debug>:/ZI>)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment