Merge pull request #397 from borglab/fix/compiler-identification

CMake policy for AppleClang compiler identification
release/4.3a0
Varun Agrawal 2020-07-12 13:03:59 -04:00 committed by GitHub
commit c3e8ad4c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
# Set cmake policy to recognize the AppleClang compiler
# independently from the Clang compiler.
if(POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif()
# function: list_append_cache(var [new_values ...])
# Like "list(APPEND ...)" but working for CACHE variables.