From 541368766df178921ca92e02c6876461c9a7a202 Mon Sep 17 00:00:00 2001 From: Gennady Pospelov <g.pospelov@fz-juelich.de> Date: Mon, 2 Nov 2015 21:45:43 +0100 Subject: [PATCH] Support for CMAKE_PREFIX_PATH consisting from two elements. --- GUI/main/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GUI/main/CMakeLists.txt b/GUI/main/CMakeLists.txt index 4b867f371b3..6d4f7bbf1ef 100644 --- a/GUI/main/CMakeLists.txt +++ b/GUI/main/CMakeLists.txt @@ -136,11 +136,13 @@ if(UNIX) set(fixup_path @rpath) # handling the case when cmake prefix path contains more than one entry - list(LENGTH "${CMAKE_PREFIX_PATH}" len) - list(GET "${CMAKE_PREFIX_PATH}" 0 cmake_prefix_path1) + set(cmake_prefix_path_to_parse ${CMAKE_PREFIX_PATH}) + list(LENGTH cmake_prefix_path_to_parse len) + list(GET cmake_prefix_path_to_parse 0 cmake_prefix_path1) if(len EQUAL 2) - list(GET "${CMAKE_PREFIX_PATH}" 1 cmake_prefix_path2) + list(GET cmake_prefix_path_to_parse 1 cmake_prefix_path2) endif() +message(INFO "XXX ${cmake_prefix_path1} ${cmake_prefix_path2}") configure_file(${CMAKE_SOURCE_DIR}/cmake/modules/FixAppleBundle.cmake.in ${destination_runtime_configs}/FixAppleBundle.cmake @ONLY) install(SCRIPT ${destination_runtime_configs}/FixAppleBundle.cmake COMPONENT Runtime) -- GitLab