Skip to content

Commit

Permalink
add nodefaultlib:libcmt (because of precompiled /MT libs) for debug b…
Browse files Browse the repository at this point in the history
…uilds with /MTd
  • Loading branch information
DubbleClick committed Nov 18, 2023
1 parent dee9c9a commit 7d7cfa4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions GWToolboxdll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ set_target_properties(GWToolboxdll PROPERTIES
VS_GLOBAL_EnableClangTidyCodeAnalysis false
)

target_link_options(GWToolboxdll PRIVATE /WX /OPT:REF /OPT:ICF /SAFESEH:NO)
target_link_options(GWToolboxdll PRIVATE $<$<NOT:$<CONFIG:Debug>>:/LTCG /INCREMENTAL:NO>)
target_link_options(GWToolboxdll PRIVATE $<$<CONFIG:Debug>:/IGNORE:4098 /OPT:NOREF /OPT:NOICF>)
target_link_options(GWToolboxdll PRIVATE $<$<CONFIG:RelWithDebInfo>:/OPT:NOICF>)
target_link_options(GWToolboxdll PRIVATE /IGNORE:4099) # pdb not found for github action
target_link_options(GWToolboxdll PRIVATE
/WX /OPT:REF /OPT:ICF /SAFESEH:NO
$<$<NOT:$<CONFIG:Debug>>:/LTCG /INCREMENTAL:NO>
$<$<CONFIG:Debug>:/IGNORE:4098 /OPT:NOREF /OPT:NOICF>
$<$<CONFIG:RelWithDebInfo>:/OPT:NOICF>
$<$<CONFIG:DEBUG>:/NODEFAULTLIB:LIBCMT>
/IGNORE:4099 # pdb not found for github action
)

target_include_directories(GWToolboxdll PRIVATE
"${PROJECT_SOURCE_DIR}/Dependencies"
Expand Down

0 comments on commit 7d7cfa4

Please sign in to comment.