Skip to content

Commit 6120098

Browse files
committed
Move active CMake command below function definitions
1 parent 015abf6 commit 6120098

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ function(sub_dir_list result curdir)
106106
PARENT_SCOPE)
107107
endfunction(sub_dir_list)
108108

109-
# add header search directories
110-
include_directories("${CMAKE_SOURCE_DIR}")
111-
112109
function(generate_package_libraries INIT_DIRECTORY AllLibs)
113110
# Find all _GeneralModuleFiles and put them into library targets so they aren't rewrapped, built with every module.
114111

@@ -306,6 +303,9 @@ function(generate_package_targets TARGET_LIST LIB_DEP_LIST MODULE_DIR)
306303
endforeach()
307304
endfunction(generate_package_targets)
308305

306+
# add header search directories
307+
include_directories("${CMAKE_SOURCE_DIR}")
308+
309309
# Start of main projection configuration
310310
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.SABIModule)
311311

0 commit comments

Comments
 (0)