From 4b51da0ae181ded262ff7609bd0baac67a4e92ba Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Fri, 3 Jul 2026 11:52:41 +0700 Subject: File write functions changes In `outFeaturesToFile` function toolset is appends to a resulting file (cmake toolchain file or arch, compiler if previous is not specify). Toolset mention needs to filter available features for a specific platform. FEATURE__IS_ENABLING var also provides when already enabled. Build type is not in toolset now. That means to parse `CMAKE_BUILD_TYPE` anyway when toolset is processing even if `CMAKE_TOOLSCHAIN_FILE` is specified. Signed-off-by: Alexey Gavrilov --- CMakeLists.txt | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a6d701..0fa2c03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,9 @@ list(APPEND CMAKE_MODULE_PATH "${ObjectiveProject_SOURCE_DIR}/cmake/module" ) +include(feature) include(metadata) +include(runfile) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -137,17 +139,5 @@ target_link_libraries(Objective PRIVATE # Set cxx linker options target_link_libraries(Objective PRIVATE CXX_LINKER_REQUIREMENTS) -# Targets to show output of generator expression -add_custom_target(options - COMMENT "Toolset passed options" - COMMAND ${CMAKE_COMMAND} -E echo - "CXX compiler options: " - "$, >" - COMMAND ${CMAKE_COMMAND} -E echo - "NASM compiler options: " - "$, >" - COMMAND ${CMAKE_COMMAND} -E echo - "Linker options: " - "$, >" - VERBATIM -) +outFeaturesToFile() +writerunfile() -- cgit v1.2.3