Re: [CMake] ; list

2017-09-21 Thread Patrick Welche
On Thu, Sep 21, 2017 at 03:35:13PM +0200, Nils Gladitz wrote: > On Thu, Sep 21, 2017 at 3:26 PM, Patrick Welche wrote: > When unquoted each list items is turned into a distinct argument for the > message() invocation. > message() concatenates its arguments hence "onetwo"

[CMake] ; list

2017-09-21 Thread Patrick Welche
Having run cmake 3.9.2 once already, I see: $ cat CMakeLists.txt set(var one two) message(${var}) $ cmake . onetwo -- Configuring done -- Generating done -- Build files have been written to: /tmp/cmaketest Would you have expected "one;two" rather than "onetwo"? Cheers, Patrick -- Powered by

Re: [CMake] debugging CMAKE_PREFIX_PATH

2017-09-13 Thread Patrick Welche
I think I am confused by the following: 1) CMAKE_PREFIX_PATH; Problematic (scribus) CMakeLists.txt: set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") CMakeCache.txt: //No help, variable specified on the command line. CMAKE_PREFIX_PATH:PATH=/usr/pkg/qt5 So the problem was that CMakeLis

Re: [CMake] debugging CMAKE_PREFIX_PATH

2017-09-12 Thread Patrick Welche
On Tue, Sep 12, 2017 at 11:52:00PM +0100, Patrick Welche wrote: > Problematic (scribus) CMakeLists.txt: > > set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") > set(CMAKE_INCLUDE_CURRENT_DIR ON) > find_package(Qt5Core ${QT_MIN_VERSION} REQUIRED) > > On Tue, S

Re: [CMake] debugging CMAKE_PREFIX_PATH

2017-09-12 Thread Patrick Welche
Problematic (scribus) CMakeLists.txt: set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(Qt5Core ${QT_MIN_VERSION} REQUIRED) On Tue, Sep 12, 2017 at 04:37:08PM +0300, Konstantin Tokarev wrote: > What actually happens here: rogue CMake project over

[CMake] debugging CMAKE_PREFIX_PATH

2017-09-12 Thread Patrick Welche
I am trying to build a package which has in its CMakeLists.txt: set(CMAKE_PREFIX_PATH "${QT_PREFIX}/lib/cmake") set(CMAKE_INCLUDE_CURRENT_DIR ON) find_package(Qt5Core ${QT_MIN_VERSION} REQUIRED) (It may be that QT_PREFIX is not set?) I build with -DCMAKE_PREFIX_PATH set, and in CMakeCache.txt, I