Skip to content
Snippets Groups Projects
Commit 49de0654 authored by m.puchner's avatar m.puchner
Browse files

Merge branch 'fixWindowsWarningLNK4098' into 'develop'

fix broken debug compilation (in context of handling windows warning LNK4098)

See merge request !241
parents dd4c718d 1b8230fc
No related branches found
No related tags found
1 merge request!241fix broken debug compilation (in context of handling windows warning LNK4098)
Pipeline #42610 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