diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-04 15:51:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-04 15:51:59 +0200 |
commit | a790e295b544bceb067f3ea6c4f0fd93f225cb98 (patch) | |
tree | 9f8200c85affd03dcb14c44a9244aaf60d676c8b /cmake | |
parent | 16497b0362244407a139479b6e15834cf709779c (diff) |
cmake/msvc: force policy settings for all projects
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/msvc.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index 71bcc17e..bfd4b875 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -6,6 +6,10 @@ SET(CMAKE_SYSTEM_NAME Windows) SET(CMAKE_SYSTEM_VERSION 5.01) set(CMAKE_SYSTEM_PROCESSOR x86) +if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake") + include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE) +endif() + # search for programs in the host directories SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # don't poison with system compile-time data @@ -21,7 +25,7 @@ add_compile_options(-diagnostics:classic) add_definitions(-D_HAS_EXCEPTIONS=0) if(CMAKE_PROJECT_NAME STREQUAL "opentrack") - include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE) + #include("${CMAKE_CURRENT_LIST_DIR}/opentrack-policy.cmake" NO_POLICY_SCOPE) add_compile_options("-W4") |