Skip to content
Snippets Groups Projects
Commit c011b812 authored by Lars Bilke's avatar Lars Bilke
Browse files

Setting Data_SOURCE_DIR requires that OGS_BUILD_TESTS is set already.

parent 955b5d98
No related branches found
No related tags found
No related merge requests found
...@@ -136,6 +136,11 @@ if(OGS_USE_EIGEN) ...@@ -136,6 +136,11 @@ if(OGS_USE_EIGEN)
endif() endif()
endif() endif()
if(OGS_BUILD_TESTS)
set(Data_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Tests/Data CACHE INTERNAL "")
set(Data_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Tests/Data CACHE INTERNAL "")
endif()
###################### ######################
### Subdirectories ### ### Subdirectories ###
###################### ######################
......
...@@ -14,8 +14,6 @@ set(REQUIRED_SUBMODULES ...@@ -14,8 +14,6 @@ set(REQUIRED_SUBMODULES
) )
if(OGS_BUILD_TESTS) if(OGS_BUILD_TESTS)
list(APPEND REQUIRED_SUBMODULES Tests/Data) list(APPEND REQUIRED_SUBMODULES Tests/Data)
set(Data_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Tests/Data CACHE INTERNAL "")
set(Data_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Tests/Data CACHE INTERNAL "")
endif() endif()
foreach(SUBMODULE ${REQUIRED_SUBMODULES}) foreach(SUBMODULE ${REQUIRED_SUBMODULES})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment