Skip to content

Commit 12fd7e2

Browse files
committed
cmake: Configure PROJECT_SOURCE_DIR
1 parent 07deea2 commit 12fd7e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ set(PROJECT_USE_CMAKE_EXPORT TRUE)
1111
set(PROJECT_USE_KEYWORD_LINK_LIBRARIES TRUE)
1212
set(PROJECT_CUSTOM_HEADER_EXTENSION "hpp")
1313
set(PROJECT_COMPATIBILITY_VERSION AnyNewerVersion)
14+
# To enable jrl-cmakemodules compatibility with workspace we must define the two
15+
# following lines
1416
set(PROJECT_AUTO_RUN_FINALIZE FALSE)
17+
set(PROJECT_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
1518

1619
# Check if the submodule cmake have been initialized
1720
set(JRL_CMAKE_MODULES "${CMAKE_CURRENT_LIST_DIR}/cmake")

0 commit comments

Comments
 (0)