File tree 1 file changed +6
-2
lines changed
cmake-init/templates/common/cmake
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if(DEFINED CMAKE_SCRIPT_MODE_FILE)
12
12
endif ()
13
13
set (PROJECT_SOURCE_DIR "${CMAKE_SOURCE_DIR} " )
14
14
15
- macro (project name )
15
+ macro (_project name )
16
16
set (args VERSION DESCRIPTION LANGUAGES HOMEPAGE_URL)
17
17
cmake_parse_arguments (PROJECT "" "${args} " "" ${ARGN} )
18
18
set (PROJECT_NAME "${name} " PARENT_SCOPE)
@@ -22,8 +22,12 @@ if(DEFINED CMAKE_SCRIPT_MODE_FILE)
22
22
return ()
23
23
endmacro ()
24
24
25
+ file (READ CMakeLists.txt lists_content)
26
+ string (REPLACE "\n project(" "\n _project(" lists_content "${lists_content} " )
27
+ file (WRITE "${PROJECT_BINARY_DIR} /docs/lists.txt" "${lists_content} " )
28
+
25
29
function (project_proxy)
26
- include (CMakeLists .txt)
30
+ include (" ${PROJECT_BINARY_DIR} /docs/lists .txt" )
27
31
endfunction ()
28
32
project_proxy()
29
33
endif ()
You can’t perform that action at this time.
0 commit comments