Skip to content

Commit 7cabe40

Browse files
committed
Re-Structure cmake solution to be closer to the scons solution.
This is just a single step, re-arranging the code without actually changing its functionality. new docs/cmake.md moved the block of comments from the start of the CMakeLists.txt into the cmake.md file and converted content to markdown. new cmake/godotcpp.cmake Moved all exposed options into a new function godotcpp_options() Moved configuration and generation code into godotcpp_generate() To get all the options into the godotcpp_options() I changed the logic of GODOT_USE_HOT_RELOAD which I believe is a closer match to scons, that if the options is not set, and the build type is not release, then it defaults to ON.
1 parent c2a2397 commit 7cabe40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project(godot-cpp LANGUAGES CXX)
55
list( APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/" )
66
include( godotcpp )
77

8-
# I know this doesnt look like a typical CMakeLists.txt, but as we are
8+
# I know this doesn't look like a typical CMakeLists.txt, but as we are
99
# attempting mostly feature parity with SCons, and easy maintenance, the closer
1010
# the two build systems look the easier they will be to keep in lockstep.
1111

0 commit comments

Comments
 (0)