Browse Source

Merge topic 'fomp-cmp0012'

36cc4378 FindOpenMP: Enable policy CMP0012

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1490
Christian Pfeiffer 8 years ago
parent
commit
8e6d6337cd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/FindOpenMP.cmake

+ 1 - 0
Modules/FindOpenMP.cmake

@@ -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