Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-01-02 15:38:02 +0300
committerVojtech Kral <vojtech@kral.hk>2019-01-02 15:38:43 +0300
commitf8b83d20d3039f621bbc414765faeadfcb61698d (patch)
treeaf3f1bcc754eeb5f10137ed220997ab4d33d2054 /CMakeLists.txt
parentabf34c3b6dbc4c70ea5867ac13216bd533b6bd5f (diff)
Build: Warn about non-existent CMAKE_PREFIX_PATH
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 18 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 625ebb334..781dbd01a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,7 +42,24 @@ if (MSVC)
add_compile_options(-bigobj -Zm316)
endif ()
-message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
+
+# Display and check CMAKE_PREFIX_PATH
+message(STATUS "SLIC3R_STATIC: ${SLIC3R_STATIC}")
+if (NOT "${CMAKE_PREFIX_PATH}" STREQUAL "")
+ message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH} (from cache or command line)")
+ set(PREFIX_PATH_CHECK ${CMAKE_PREFIX_PATH})
+elseif (NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
+ message(STATUS "CMAKE_PREFIX_PATH: $ENV{CMAKE_PREFIX_PATH} (from environment)")
+ set(PREFIX_PATH_CHECK $ENV{CMAKE_PREFIX_PATH})
+else ()
+ message(STATUS "CMAKE_PREFIX_PATH: (default)")
+endif ()
+
+foreach (DIR ${PREFIX_PATH_CHECK})
+ if (NOT EXISTS "${DIR}")
+ message(WARNING "CMAKE_PREFIX_PATH element doesn't exist: ${DIR}")
+ endif ()
+endforeach ()
# Add our own cmake module path.
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules/)