FindOpenMP: Enable policy CMP0012

Fixes: #17476
This commit is contained in:
Christian Pfeiffer 2017-11-16 15:22:37 +01:00
parent bd863785db
commit 36cc43788a

View File

@ -75,6 +75,7 @@
# the OpenMP specification implemented by the ``<lang>`` compiler.
cmake_policy(PUSH)
cmake_policy(SET CMP0012 NEW) # if() recognizes numbers and booleans
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
cmake_policy(SET CMP0057 NEW) # if IN_LIST