diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/tools/CMakeLists.txt | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e2dbb6c71..be3f1010f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,11 +36,8 @@ set(EXTRA_INCLUDES) foreach(SRC ${SRC_SRCS}) # Temporary variable for the current source's include directories set(TEMP_INCLUDES) - # Create unused skip variable - set(SKIP) - set(MODULE FALSE) # Calculate the header file dependencies for the given source file - calculate_depends(${SRC} SKIP MODULE TEMP_INCLUDES) + calculate_depends(${SRC} TEMP_INCLUDES) # If there were some extra include directories, add them to the list if(TEMP_INCLUDES) append_to_list(EXTRA_INCLUDES ${TEMP_INCLUDES}) diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt index 88e03f615..8d66e577f 100644 --- a/src/tools/CMakeLists.txt +++ b/src/tools/CMakeLists.txt @@ -9,11 +9,8 @@ set_source_files_properties(${TOOLS_SRCS} PROPERTIES LANGUAGE CXX COMPILE_FLAGS foreach(SRC ${TOOLS_SRCS}) # Convert the source file extension to have no extension string(REGEX REPLACE "\\.cpp$" "" EXE ${SRC}) - # Create skip variable - set(SKIP) - set(MODULE FALSE) # Calculate the header file dependencies for the given source file - calculate_depends(${SRC} SKIP MODULE) + calculate_depends(${SRC}) # Only continue if this file isn't skipped if(NOT SKIP) # Generate the executable and set its linker flags, also set it to depend on the main Anope executable to be built beforehand |