fix an issue of configuration on older CMake

This commit is contained in:
falsycat 2022-10-20 13:09:20 +09:00
parent fcf3dad206
commit 3b0d86c0a5
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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)