Skip to content

Commit

Permalink
CMAKE_MODULE_PATH is a list
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaveluy committed Jan 3, 2024
1 parent 3449568 commit 5f7e467
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FetchContent_Declare(

FetchContent_MakeAvailable(ecss_smp date_src)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

option(XSMP_BUILD_TESTS "whether or not tests should be built" ${XSMP_MASTER_PROJECT})
option(XSMP_BUILD_PYTHON_BINDINGS "whether or not Python bindings should be built" ON)
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FetchContent_Declare(
FetchContent_MakeAvailable(xsmp-sdk)
#use cmake modules from xsmp-sdk
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${xsmp-sdk_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH "${xsmp-sdk_SOURCE_DIR}/cmake")
...
```
Expand Down Expand Up @@ -67,7 +67,7 @@ FetchContent_Declare(
FetchContent_MakeAvailable(xsmp-sdk)
#use cmake modules from xsmp-sdk
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${xsmp-sdk_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH "${xsmp-sdk_SOURCE_DIR}/cmake")
file(GLOB_RECURSE SRC CONFIGURE_DEPENDS src/*.cpp src-gen/*.cpp)
Expand Down
2 changes: 1 addition & 1 deletion examples/project1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(NOT PARENT_PROJECT_NAME)
)

FetchContent_MakeAvailable(xsmp-sdk)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${xsmp-sdk_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH "${xsmp-sdk_SOURCE_DIR}/cmake")
endif()

file(GLOB_RECURSE SRC CONFIGURE_DEPENDS src/*.cpp src-gen/*.cpp)
Expand Down

0 comments on commit 5f7e467

Please sign in to comment.