cmake: silence policy warnings
This commit is contained in:
parent
b40d60e015
commit
40eb0f2c70
1 changed files with 2 additions and 5 deletions
|
@ -17,6 +17,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON")
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
cmake_policy(VERSION 3.24)
|
||||||
|
|
||||||
option(MNODE_BUILD_TESTS "Build mnode test binaries" ${MESYTEC_MNODE_MAIN_PROJECT})
|
option(MNODE_BUILD_TESTS "Build mnode test binaries" ${MESYTEC_MNODE_MAIN_PROJECT})
|
||||||
|
|
||||||
|
@ -37,11 +38,7 @@ endif()
|
||||||
|
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(pybind11 GIT_REPOSITORY https://github.com/pybind/pybind11 GIT_TAG v2.13.6)
|
FetchContent_Declare(pybind11 GIT_REPOSITORY https://github.com/pybind/pybind11 GIT_TAG v2.13.6)
|
||||||
FetchContent_GetProperties(pybind11)
|
FetchContent_MakeAvailable(pybind11)
|
||||||
if(NOT pybind11_POPULATED)
|
|
||||||
FetchContent_Populate(pybind11)
|
|
||||||
add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include(CMakeRC)
|
include(CMakeRC)
|
||||||
cmrc_add_resource_library(mnode-resources
|
cmrc_add_resource_library(mnode-resources
|
||||||
|
|
Loading…
Reference in a new issue