build system spruce-up
This commit is contained in:
parent
83b7de3a5f
commit
9ad87ba79b
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.7.2)
|
||||
cmake_minimum_required(VERSION 3.27.2)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
|
||||
include(Colours)
|
||||
include(Platform)
|
||||
|
@ -1,4 +1,4 @@
|
||||
find_package(PythonInterp)
|
||||
find_package(Python3 COMPONENTS Interpreter)
|
||||
find_package(PythonModule)
|
||||
find_python_module(cogapp REQUIRED)
|
||||
|
||||
@ -31,7 +31,7 @@ macro(cog_target)
|
||||
set(thisfile "${CMAKE_CURRENT_BINARY_DIR}/${outfile}")
|
||||
|
||||
add_custom_command(OUTPUT "${thisfile}" PRE_BUILD
|
||||
COMMAND ${PYTHON_EXECUTABLE} -m cogapp -d -o "${thisfile}" "${cogfile}"
|
||||
COMMAND ${Python3_EXECUTABLE} -m cogapp -d -o "${thisfile}" "${cogfile}"
|
||||
DEPENDS ${cogfile}
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
COMMENT "Greasing the cog for ${BoldCyan}${outfile}${ColourReset}")
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(PLATFORM_FOREIGN_ENV FALSE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user