projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b82ad2
)
cmake: set CMP0066 => NEW
author
Alexander Alekhin
<alexander.a.alekhin@gmail.com>
Mon, 23 Mar 2020 01:15:49 +0000
(
01:15
+0000)
committer
Alexander Alekhin
<alexander.a.alekhin@gmail.com>
Mon, 23 Mar 2020 01:15:49 +0000
(
01:15
+0000)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
831602a
..
6e887dc
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-56,6
+56,10
@@
if(POLICY CMP0056)
cmake_policy(SET CMP0056 NEW) # try_compile(): link flags
endif()
+if(POLICY CMP0066)
+ cmake_policy(SET CMP0066 NEW) # CMake 3.7: try_compile(): use per-config flags, like CMAKE_CXX_FLAGS_RELEASE
+endif()
+
if(POLICY CMP0067)
cmake_policy(SET CMP0067 NEW) # CMake 3.8: try_compile(): honor language standard variables (like C++11)
endif()