[CMake] zlib and pkg-config on window

2016-03-29 Thread Barry Scott
I am trying to build a couple of projects that use CMake, libssh2 and libgit2 on Windows 10 64 bit. I am installing all open source code into c:\OpenSource64 tree with the usual bin, lib, include folders. I cannot seem to find a set of -D that allows cmake to allow ZLIB and libssh2 be found when

Re: [CMake] EFFECTIVE_PLATFORM_NAME not expanded in TARGET_* generator expressions on iOS

2016-03-29 Thread Ruslan Baratov via CMake
The note about CMAKE_IOS_INSTALL_COMBINED is related to value of CMAKE_OSX_SYSROOT. `${EFFECTIVE_PLATFORM_NAME}` as far as I understand used on build step too, it's not only installation (`cmTarget::ComputeOutputDir`). As alternative you can try to hardcode `LIBRARY_OUTPUT_DIRECTORY` so both si

Re: [CMake] EFFECTIVE_PLATFORM_NAME not expanded in TARGET_* generator expressions on iOS

2016-03-29 Thread Vladimír Vondruš
Hm... this is unfortunate. Would it be possible to keep the ${EFFECTIVE_PLATFORM_NAME} in place for the install step but return it substituted when one asks explicitly using generator expression? From what I understood in the docs, the CMAKE_IOS_INSTALL_COMBINED is doing something additional du

Re: [CMake] EFFECTIVE_PLATFORM_NAME not expanded in TARGET_* generator expressions on iOS

2016-03-29 Thread Ruslan Baratov via CMake
On 29-Mar-16 16:14, Vladimír Vondruš wrote: I saw that commit, yes. Since there is no additional round of variable expansion, wouldn't it be better to expand the ${EFFECTIVE_PLATFORM_NAME} to at least something fixed (based on the value of CMAKE_OSX_SYSROOT), instead of making the generator exp

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-29 Thread Sebastian Schuberth
On 3/29/2016 11:39, Sebastian Schuberth wrote: >>$ cat CMakeLists.txt >>cmake_minimum_required(VERSION 3.5) >>project(test C) >>message("${CMAKE_SIZEOF_VOID_P}") >> >> If that reproduces the problem, try configuring with --debug-trycompile >> so that the CMakeFiles/CmakeTmp/CMakeFi

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-29 Thread Sebastian Schuberth
On 3/28/2016 16:09, Brad King wrote: >> /usr/bin/sh: -c: line 0: syntax error near unexpected token `(' >> /usr/bin/sh: -c: line 0: `C:/Ruby-DevKit/mingw/bin/gcc.exe-fPIC >> -o CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj -c \C:/Program >> Files (x86)/CMake/share/cmake-3.5/Modules/CMake

Re: [CMake] EFFECTIVE_PLATFORM_NAME not expanded in TARGET_* generator expressions on iOS

2016-03-29 Thread Vladimír Vondruš
I saw that commit, yes. Since there is no additional round of variable expansion, wouldn't it be better to expand the ${EFFECTIVE_PLATFORM_NAME} to at least something fixed (based on the value of CMAKE_OSX_SYSROOT), instead of making the generator expression unusable in all cases? It seems reaso

Re: [CMake] Debian SID / CMake 3.5.0-1 / FindBoost / CTest

2016-03-29 Thread Vincent Huber
Thank you for your precise and clear answer ! 2016-03-29 10:54 GMT+02:00 Nils Gladitz : > On 03/29/2016 10:31 AM, Vincent Huber wrote: > > Hello everyone, > > In a CTest process, I have to determine the Boost_VERSION. > To do so, I just add FIND_PACKAGE(Boost) to my configuration file. > I didn’t

Re: [CMake] Debian SID / CMake 3.5.0-1 / FindBoost / CTest

2016-03-29 Thread Nils Gladitz
On 03/29/2016 10:31 AM, Vincent Huber wrote: Hello everyone, In a |CTest| process, I have to determine the |Boost_VERSION|. To do so, I just add |FIND_PACKAGE(Boost)| to my configuration file. I didn’t had any problems since a |cmake| update on Debian/SID to cmake 3.5.0. From now, I have: |-

[CMake] Debian SID / CMake 3.5.0-1 / FindBoost / CTest

2016-03-29 Thread Vincent Huber
Hello everyone, In a CTest process, I have to determine the Boost_VERSION. To do so, I just add FIND_PACKAGE(Boost) to my configuration file. I didn’t had any problems since a cmake update on Debian/SID to cmake 3.5.0. >From now, I have: -- Looking for boost CMake Error at /usr/share/cmake-3.5/Mo

Re: [CMake] Check if a variable contains valid number

2016-03-29 Thread Rolf Eike Beer
Am 2016-03-29 09:03, schrieb Lloyd: Hi, How can I check if the user supplied value is a valid positive integer or not? I have tried the following, but it is not entering the if condition, what might be wrong? Is there a better solution? SET(MY_NUMBER "100" CACHE STRING " Please enter the n

[CMake] How to debug missing dart images from ctest in cdash?

2016-03-29 Thread Nyall Dawson
(please forgive the cross-posting from the cdash list also, I'm not sure where this issue lies) I'm currently hitting an issue I can't resolve with submission of ctest results to cdash. Our project makes heavy use of DartMeasurementFile to display expected/rendered image results on cdash. This wor

[CMake] Check if a variable contains valid number

2016-03-29 Thread Lloyd
Hi, How can I check if the user supplied value is a valid positive integer or not? I have tried the following, but it is not entering the if condition, what might be wrong? Is there a better solution? SET(MY_NUMBER "100" CACHE STRING " Please enter the number") string(REGEX MATCH "^[1-9][0-9]*$"