Add cmake_policy(SET CMP0074 NEW) # Use <PackageName>_ROOT in find_package
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
This commit is contained in:
parent
e872c55bfe
commit
857316ff00
|
|
@ -23,13 +23,20 @@
|
||||||
# This notice may not be removed or altered from any source distribution.
|
# This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.10)
|
cmake_minimum_required (VERSION 3.10)
|
||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
|
|
||||||
# Use standard target names
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
|
||||||
cmake_policy(SET CMP0078 NEW)
|
# Use <PACKAGENAME>_ROOT in find_package
|
||||||
|
cmake_policy(SET CMP0074 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
|
||||||
|
# Use standard target names
|
||||||
|
cmake_policy(SET CMP0078 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)
|
||||||
# Allows SWIG_MODULE_NAME to be set
|
# Allows SWIG_MODULE_NAME to be set
|
||||||
cmake_policy(SET CMP0086 NEW)
|
cmake_policy(SET CMP0086 NEW)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(STA VERSION 2.7.0
|
project(STA VERSION 2.7.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue