diff options
author | Thomas Karl Pietrowski <thopiekar@googlemail.com> | 2020-02-22 20:34:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 20:34:21 +0300 |
commit | 2ddb44a0478b7bb9a3af136804e441464f07bcc0 (patch) | |
tree | 26a6f716dfe8b0f32446626dd49af83438094b37 /CMakeLists.txt | |
parent | 27777c759c91965c800080ff4435110900320a96 (diff) |
CMake: Fixing warning about path conversion
According to what I found in the docs[1], there is no "DIRECTORY" available as <type>.
Therefore, correcting it to "PATH", which is according to the docs correct.
At the moment I'm getting the following error[2]:
-----------
CMake Warning (dev) at CMakeLists.txt:8 (set):
implicitly converting 'DIRECTORY' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at CMakeLists.txt:9 (set):
implicitly converting 'DIRECTORY' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
---------------
[1] https://cmake.org/cmake/help/v3.6/command/set.html
[2] https://launchpadlibrarian.net/464670600/buildlog_ubuntu-focal-amd64.cura_1%3A4.5~202002121434~rev4433~pkg330~ubuntu20.04.1_BUILDING.txt.gz
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f662c2b50f..035191ebf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,8 +5,8 @@ include(GNUInstallDirs) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) -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") +set(URANIUM_DIR "${CMAKE_SOURCE_DIR}/../Uranium" CACHE PATH "The location of the Uranium repository") +set(URANIUM_SCRIPTS_DIR "${URANIUM_DIR}/scripts" CACHE PATH "The location of the scripts directory of the Uranium repository") # Tests include(CuraTests) |