Do not hardcode the path to Uranium but use a cache variable

This allows us to override the uranium dir and make sure it is still
found even when it is not the same as "../uranium"
This commit is contained in:
Arjen Hiemstra 2017-03-15 17:23:54 +01:00
parent 1dbec70738
commit 04e517eddf
2 changed files with 4 additions and 3 deletions

View file

@ -6,7 +6,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/
include(GNUInstallDirs)
set(URANIUM_SCRIPTS_DIR "${CMAKE_SOURCE_DIR}/../uranium/scripts" CACHE DIRECTORY "The location of the scripts directory of the Uranium repository")
set(URANIUM_DIR "${CMAKE_SOURCE_DIR}/../Uranium" CACHE DIRECTORY "The location of the Uranium repository")
set(URANIUM_SCRIPTS_DIR "${URANIUM_DIR}/scripts" CACHE DIRECTORY "The location of the scripts directory of the Uranium repository")
# Tests
include(CuraTests)