cmake: silence FindPythonInterp warning

This commit is contained in:
tobtoht 2023-11-25 20:38:52 +01:00
parent ac02af9286
commit eb083ca423
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472

View File

@ -28,6 +28,9 @@
# #
# Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers # Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
cmake_minimum_required(VERSION 3.5)
message(STATUS "CMake version ${CMAKE_VERSION}")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
list(INSERT CMAKE_MODULE_PATH 0 list(INSERT CMAKE_MODULE_PATH 0
@ -37,15 +40,14 @@ include(CheckCXXCompilerFlag)
include(CheckLinkerFlag) include(CheckLinkerFlag)
include(CheckLibraryExists) include(CheckLibraryExists)
include(CheckFunctionExists) include(CheckFunctionExists)
cmake_policy(SET CMP0148 OLD)
include(FindPythonInterp) include(FindPythonInterp)
if (IOS) if (IOS)
INCLUDE(CmakeLists_IOS.txt) INCLUDE(CmakeLists_IOS.txt)
endif() endif()
cmake_minimum_required(VERSION 3.5)
message(STATUS "CMake version ${CMAKE_VERSION}")
project(monero) project(monero)
option (USE_CCACHE "Use ccache if a usable instance is found" ON) option (USE_CCACHE "Use ccache if a usable instance is found" ON)
@ -219,7 +221,7 @@ function(forbid_undefined_symbols)
file(MAKE_DIRECTORY "${TEST_PROJECT}") file(MAKE_DIRECTORY "${TEST_PROJECT}")
file(WRITE "${TEST_PROJECT}/CMakeLists.txt" file(WRITE "${TEST_PROJECT}/CMakeLists.txt"
[=[ [=[
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.5)
project(test) project(test)
option(EXPECT_SUCCESS "" ON) option(EXPECT_SUCCESS "" ON)
file(WRITE "${CMAKE_SOURCE_DIR}/incorrect_source.cpp" "void undefined_symbol(); void symbol() { undefined_symbol(); }") file(WRITE "${CMAKE_SOURCE_DIR}/incorrect_source.cpp" "void undefined_symbol(); void symbol() { undefined_symbol(); }")