mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
80dfd83f51
commit
65686f50f2
@ -1,10 +1,14 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(pocketpy)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# if cmake < 3.12, find_package(Python3) will not work, we directly use python3
|
||||
if (CMAKE_VERSION VERSION_LESS 3.12)
|
||||
set(Python3_EXECUTABLE python3)
|
||||
else()
|
||||
find_package(Python3 COMPONENTS Interpreter)
|
||||
|
||||
execute_process(
|
||||
|
Loading…
x
Reference in New Issue
Block a user