[Cmake-commits] CMake branch, master, updated. v3.11.0-453-ge769e61

2018-04-09 Thread Kitware Robot
VERSION_MINOR 11) -set(CMake_VERSION_PATCH 20180409) +set(CMake_VERSION_PATCH 20180410) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

Re: [CMake] Can find_package(...) distinguish between debug and release installs?

2018-04-09 Thread Bo Zhou
Hi, Generally speaking, no, you might have to use the suffix or special name to distinguish the different library, such as with the "_d" suffix. The Boost module of CMake is a considerable example, since it could generate different names for Debug and Release libraries on Windows. At

[CMake] Can find_package(...) distinguish between debug and release installs?

2018-04-09 Thread Saad Khattak
Hi, When find_package(LibA) sets the LibA_FOUND variable, is it possible to know if the package found is the Debug or Release build (or both)? I have a fairly complex build setup where I need to be able to distinguish if find_package(LibA) found a Debug or Release build. - Saad -- Powered by

Re: [CMake] passing a URL to cmake on the command line

2018-04-09 Thread Szilárd Páll
Hi, My bad, looks like we had an offending line in our CMake scripts, something like set(MY_URL "http://default-url.com/foobar.tar.gz; CACHE PATH "URL from where to download") The PATH type seems to have caused the issue rather than the mechanism of passing the URL to on the bash

[CMake] Transitive linker flags

2018-04-09 Thread Zaak Beekman
Hi, I'm defining a static library target and, conditionally, when on windows, I need to pass a whole bunch of windows system libraries and tell Visual Studio that any target linking against this static library should pass additional linker flags ( `\NODEFAULTLIB:libcd \INCREMENTAL:NO` ). I tried

Re: [CMake] passing a URL to cmake on the command line

2018-04-09 Thread Haocheng Liu
Hi Szilard, I tried it in CMake 3.10 and it works fine(No slash is dropped). Which version of CMake are you using? On Mon, Apr 9, 2018 at 11:24 AM, Szilárd Páll wrote: > Hi, > > I'm trying to pass a URL (that's used in ExternalProject_Add), and I'm > having trouble

[Cmake-commits] CMake branch, master, updated. v3.11.0-452-g23a4500

2018-04-09 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 23a450044d4d5b3cb314085daf8c42e657b4e132 (commit) via

[CMake] passing a URL to cmake on the command line

2018-04-09 Thread Szilárd Páll
Hi, I'm trying to pass a URL (that's used in ExternalProject_Add), and I'm having trouble convincing bash + cmake to cooperate. No matter what I've done, one fo the "/" gets dropped from "http://;. Any ideas how can I construct an invocation similar to the one below that will actually work?

[CMake] CMake import targets, recommended Naming scheme and static/shared libraries

2018-04-09 Thread Norbert Lange
Hello, I would like to add support for some software components, that have not been compiled with CMake. There are 2 options, either write a Find script or generate configs. Later option would be more robust, as substantial changes could be ironed out when the config is version-specific. *)

Re: [CMake] Generator expression for "is in list"?

2018-04-09 Thread CHEVRIER, Marc
Operator IN_LIST in generator expressions will be available in CMake version 3.12, (i.e. the next version). In the meantime, I am afraid there is no solution in the context of generator expressions. However, you can directly use the contents of the property in your CMakeLists.txt. Example: