Skip to content

Commit

Permalink
COMP: Restore generation of static runtime library on MSVC
Browse files Browse the repository at this point in the history
ce2efb1 broke runtime library setting
due to implicitly using `NEW` value for CMake policy CMP0091.
This caused dynamic runtime library even if /MT was present in
CMAKE_CXX_FLAGS_RELEASE and friends in CMake cache.
  • Loading branch information
dzenanz committed Jun 23, 2021
1 parent 8851944 commit dbb34f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ foreach(pnew "") # Currently Empty
cmake_policy(SET ${pnew} NEW)
endif()
endforeach()
foreach(pold "CMP0120") # CMP0120 will require non-trivial effort to address
foreach(pold "CMP0120" "CMP0091") # CMP0120 will require non-trivial effort to address
if(POLICY ${pold})
cmake_policy(SET ${pold} OLD)
endif()
Expand Down

0 comments on commit dbb34f9

Please sign in to comment.