Skip to content

Commit 6be793b

Browse files
committed
WIP 00
1 parent 6230d47 commit 6be793b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CMakeLists.txt

+42
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,27 @@ if(POLICY CMP0141)
1515
endif()
1616
cmake_minimum_required(VERSION 3.22)
1717

18+
19+
message("${CMAKE_SOURCE_DIR}")
20+
message("${PROJECT_SOURCE_DIR}")
21+
22+
23+
get_cmake_property(_variableNames CACHE_VARIABLES)
24+
list (SORT _variableNames)
25+
foreach (_variableName ${_variableNames})
26+
message(STATUS "${_variableName}=${${_variableName}}")
27+
endforeach()
28+
29+
30+
# return()
31+
32+
if(NOT INTERNAL_BUILD)
33+
string(RANDOM internal_binary_dir)
34+
execute_process(COMMAND ${CMAKE_COMMAND} -S ${CMAKE_SOURCE_DIR} -B ${CMAKE_BINARY_DIR}/${internal_binary_dir}] -DINTERNAL_BUILD=ON)
35+
endif()
36+
return()
37+
38+
1839
#=============================
1940
# Project / Package metadata
2041
#=============================
@@ -57,6 +78,27 @@ set(CMAKE_CXX_EXTENSIONS OFF)
5778

5879
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/module)
5980

81+
82+
83+
84+
get_cmake_property(_variableNames CACHE_VARIABLES)
85+
list (SORT _variableNames)
86+
foreach (_variableName ${_variableNames})
87+
message(STATUS "${_variableName}=${${_variableName}}")
88+
endforeach()
89+
90+
91+
return()
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
60102
#=============================
61103
# Configurable options
62104
#=============================

0 commit comments

Comments
 (0)