mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
silence cmake 3.0+ warnings on LOCATION attribute
This commit is contained in:
parent
32348604e3
commit
1744098438
@ -38,6 +38,11 @@ if(POLICY CMP0022)
|
||||
cmake_policy(SET CMP0022 OLD)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0026)
|
||||
# silence cmake 3.0+ warnings about reading LOCATION attribute
|
||||
cmake_policy(SET CMP0026 OLD)
|
||||
endif()
|
||||
|
||||
# must go before the project command
|
||||
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
|
||||
if(DEFINED CMAKE_BUILD_TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user