fix an issue of configuration on older CMake
This commit is contained in:
parent
fcf3dad206
commit
3b0d86c0a5
@ -1,6 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.18)
|
||||
cmake_policy(SET CMP0077 NEW)
|
||||
cmake_policy(SET CMP0135 OLD)
|
||||
|
||||
# ---- configuration ----
|
||||
project(nf7 C CXX)
|
||||
|
4
thirdparty/CMakeLists.txt
vendored
4
thirdparty/CMakeLists.txt
vendored
@ -1,5 +1,9 @@
|
||||
include(FetchContent)
|
||||
|
||||
if (CMAKE_POLICY_DEFAULT_CMP0135)
|
||||
cmake_policy(SET CMP0135 OLD)
|
||||
endif()
|
||||
|
||||
|
||||
if (NF7_STATIC)
|
||||
set(BUILD_SHARED_LIBS OFF)
|
||||
|
Loading…
x
Reference in New Issue
Block a user