summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Gavrilov <alexey.gavrilov@mail.com>2026-07-13 10:33:03 +0700
committerAlexey Gavrilov <alexey.gavrilov@mail.com>2026-07-14 18:12:06 +0700
commitb0b096e37613df9b718b5bc7cc254ebaf82fe367 (patch)
treeb10c34a317e9bdea35e3830fa94433e87ca491b7 /cmake
parenta8c64322193c7d3d2ae6331c86ae982640c5c27d (diff)
Cancel toolchain processing for runfile
Toolchain and build folder cmake arguments doesn't have in runfile now. Only features are enumerating in. These deleted defines are point by CI service to run needed cmake configuration Signed-off-by: Alexey Gavrilov <alexey.gavrilov@mail.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/module/runfile.cmake24
1 files changed, 1 insertions, 23 deletions
diff --git a/cmake/module/runfile.cmake b/cmake/module/runfile.cmake
index f9d1640..a861b9a 100644
--- a/cmake/module/runfile.cmake
+++ b/cmake/module/runfile.cmake
@@ -2,7 +2,7 @@ get_property(IS_INITIALIZED GLOBAL PROPERTY CONFFILE_MODULE SET)
if(NOT IS_INITIALIZED)
set_property(GLOBAL PROPERTY CONFFILE_MODULE TRUE)
- set(CONFFILE_NAME "CMakeReplication.txt" CACHE STRING "Build configuration
+ set(CONFFILE_NAME "CMakeFeaturesDefineEnum.txt" CACHE STRING "Build configuration
file contains cmake run command to reproduce last run")
endif()
@@ -23,32 +23,10 @@ macro(parseFeatures vars outfile)
endforeach()
endmacro()
-macro(parseToolset vars outfile)
- convertCacheVarIntoArg(CMAKE_BUILD_TYPE ${vars} ${outfile})
- if("CMAKE_TOOLCHAIN_FILE" IN_LIST ${vars} AND NOT ${CMAKE_TOOLCHAIN_FILE})
- cmake_path(GET CMAKE_TOOLCHAIN_FILE FILENAME TOOLCHAIN_FILE_NAME)
- file(APPEND ${${outfile}}
- " -DCMAKE_TOOLCHAIN_FILE="
- "${ObjectiveProject_SOURCE_DIR}/cmake/toolchain/${TOOLCHAIN_FILE_NAME}")
- else()
- # If toolchain file isn't specifies, there are two things to pass
- # in cmake: architecture and c++ compiler
- convertCacheVarIntoArg(ObjectiveProject_ARCHITECTURE ${vars} ${outfile})
- cmake_path(GET CMAKE_CXX_COMPILER FILENAME COMPILER_EXECUTABLE)
- if(NOT "${COMPILER_EXECUTABLE}" STREQUAL "")
- file(APPEND ${${outfile}}
- " -DCMAKE_CXX_COMPILER=${COMPILER_EXECUTABLE}")
- endif()
- endif()
-endmacro()
-
function(writerunfile)
set(OUT_FILE "${CMAKE_BINARY_DIR}/${CONFFILE_NAME}")
get_directory_property(cacheVars CACHE_VARIABLES)
- file(WRITE ${OUT_FILE} "cmake")
- parseToolset(cacheVars OUT_FILE)
parseFeatures(cacheVars OUT_FILE)
- file(APPEND ${OUT_FILE} " -B autoconfbuild")
endfunction()