Skip to content

Commit

Permalink
CMakeLists: add compile options if MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
rajendra-desai-ni committed Aug 29, 2024
1 parent 36890c9 commit 2ea12e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ endif()

# Enforce consistent runtime library settings in case of MSVC
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options("/MT$<$<CONFIG:Debug>:d>")
if (POLICY CMP0091)
message("Policy CMP0091 available, setting compiler flags automatically")
cmake_policy(SET CMP0091 NEW)
Expand Down

0 comments on commit 2ea12e9

Please sign in to comment.