added cmake policy for AppleClang compiler identification

release/4.3a0
Varun Agrawal 2020-07-11 21:44:38 -04:00
parent 54a354b104
commit 289ab6271d
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.