Skip to content

Commit

Permalink
Windows MSVC tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Sep 24, 2024
1 parent 88fa670 commit edd094f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "AppleClang|Clang")
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/utf-8)
add_compile_options(/utf-8 /Zi)
add_link_options($<$<CONFIG:Release>:/OPT:REF>)
add_link_options($<$<CONFIG:Release>:/OPT:ICF=3>)
add_link_options($<$<CONFIG:Release>:/Qvec>)
add_link_options($<$<CONFIG:Release>:/GR>)
endif()

add_subdirectory(clap EXCLUDE_FROM_ALL)
Expand Down

0 comments on commit edd094f

Please sign in to comment.