Skip to content

Commit 14cba5d

Browse files
authored
build: correct ordering of include (#608)
Correct the ordering that @bnbarham pointed out post-commit. Ensure that we adjust the `CMAKE_MODULE_PATH` prior to the use of `include` which will reference local modules.
1 parent f031c79 commit 14cba5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ project(swift-argument-parser
66
option(BUILD_EXAMPLES "Build Example Programs" TRUE)
77
option(BUILD_SHARED_LIBS "Build shared libraries by default" YES)
88

9-
include(CTest)
10-
include(SwiftSupport)
11-
129
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
1310

1411
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
@@ -17,6 +14,9 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1714

1815
set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
1916

17+
include(CTest)
18+
include(SwiftSupport)
19+
2020
find_package(dispatch CONFIG)
2121
find_package(Foundation CONFIG)
2222
find_package(XCTest CONFIG)

0 commit comments

Comments
 (0)