diff options
| author | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-07-03 11:52:41 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-07-03 11:52:41 +0700 |
| commit | 4b51da0ae181ded262ff7609bd0baac67a4e92ba (patch) | |
| tree | b2ed80261d7fa438ac1ca206e9e79db2fea42183 /CMakeLists.txt | |
| parent | 0d1d78eb82075c9543aa06af576825902e8ec52f (diff) | |
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_<feature>_IS_ENABLING var also provides when <feature>
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 <alexey.gavrilov@mail.com>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 18 |
1 files changed, 4 insertions, 14 deletions
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: " - "$<JOIN:$<TARGET_PROPERTY:CXX_COMPILER_REQUIREMENTS,INTERFACE_COMPILE_OPTIONS>, >" - COMMAND ${CMAKE_COMMAND} -E echo - "NASM compiler options: " - "$<JOIN:$<TARGET_PROPERTY:ASM_NASM_COMPILER_REQUIREMENTS,INTERFACE_COMPILE_OPTIONS>, >" - COMMAND ${CMAKE_COMMAND} -E echo - "Linker options: " - "$<JOIN:$<TARGET_PROPERTY:CXX_LINKER_REQUIREMENTS,INTERFACE_LINK_OPTIONS>, >" - VERBATIM -) +outFeaturesToFile() +writerunfile() |
