mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Silence cmake 3.0+ warnings about MACOSX_RPATH
This commit is contained in:
parent
ac22c524fc
commit
9cccd87e79
@ -56,6 +56,11 @@ if(POLICY CMP0026)
|
|||||||
cmake_policy(SET CMP0026 OLD)
|
cmake_policy(SET CMP0026 OLD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (POLICY CMP0042)
|
||||||
|
# silence cmake 3.0+ warnings about MACOSX_RPATH
|
||||||
|
cmake_policy(SET CMP0042 OLD)
|
||||||
|
endif()
|
||||||
|
|
||||||
# must go before the project command
|
# must go before the project command
|
||||||
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
|
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
|
||||||
if(DEFINED CMAKE_BUILD_TYPE)
|
if(DEFINED CMAKE_BUILD_TYPE)
|
||||||
|
Loading…
Reference in New Issue
Block a user