diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-02-29 23:20:37 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-02-29 23:20:37 +0100 |
commit | 34308dd6decd7011ba7ff1196db49b961577c608 (patch) | |
tree | 099c4b381a7251f5b14dc5d9731435e4e39c1778 /CMakeLists.txt | |
parent | 465c1d682a6e318a72062da180e3f62af035cf66 (diff) |
Build: Perform CMake check_cxx_source_compiles checks using the same C++ standard as used in the project
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b34f583906d..40f05c5a4d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ project(TrinityCore) cmake_policy(SET CMP0005 NEW) cmake_policy(SET CMP0043 NEW) # Ignore COMPILE_DEFINITIONS_<Config> properties cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted - prevents intepreting if(SOME_STRING_VARIABLE MATCHES "MSVC") as if(SOME_STRING_VARIABLE MATCHES "1") +cmake_policy(SET CMP0067 NEW) # Honor language standard in try_compile() source-file signature cmake_policy(SET CMP0074 NEW) # find_package() uses <PackageName>_ROOT variables if(POLICY CMP0144) |