[Cmake-commits] CMake branch, master, updated. v3.12.2-751-g8bb0e09

2018-09-27 Thread Kitware Robot
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 1a82e2a..d9aa818 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -1,5 +1,5 @@ # CMake version number components. set(CMake_VERSION_MAJOR 3) set(CMake_VERSION_MINOR 12) -set(CMake_VERSION_PATCH 20180927) +set(CMake_VER

Re: [CMake] LOCATION target property, generator expressions

2018-09-27 Thread Hendrik Greving
Thanks. Ok one step back. What we want is to have the same relative path from binary/executable to linked library in build and install tree (which we assume is the same for us). Looks like by default, e.g. cmake 3.9, puts in an absolute path. The current (c-)makefiles compute the relative part of

Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Roger Leigh
On 27/09/18 22:55, Mateusz Loskot wrote: On Thu, 27 Sep 2018 at 23:34, Dorier, Matthieu wrote: When I call find_package(XercesC REQUIRED) and XercesC is not in a standard location, I have to set XercesC_INCLUDE_DIR to its include directory and XercesC_LIBRARY to the location of the library.

Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Michael Ellery
> On Sep 27, 2018, at 2:55 PM, Mateusz Loskot wrote: > > > >> I use to rely on a custom FindXercesC.cmake file that was using XercesC_ROOT >> to figure all this out. >> Is there any way to do the same here? > > There seem to be no Xxx_ROOT_DIR handled by this module >

Re: [CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Mateusz Loskot
On Thu, 27 Sep 2018 at 23:34, Dorier, Matthieu wrote: > > When I call find_package(XercesC REQUIRED) and XercesC is not in a standard > location, I have to set XercesC_INCLUDE_DIR to its include directory and > XercesC_LIBRARY to the location of the library. Correct. If Find-module can not

Re: [CMake] CMake Cookbook is out!!

2018-09-27 Thread Alan W. Irwin
On 2018-09-27 20:26+0200 Eric Noulard wrote: Hi CMakers, Hi try not do that too often but here comes a little promotion for a book which (I think) deserve attention. The CMake Cookbook by Radovan Bast, Roberto Di Remigio https://www.packtpub.com/application-development/cmake-cookbook I don't

[CMake] Problem with FindXercesC.cmake

2018-09-27 Thread Dorier, Matthieu
Hi, I'm using cmake 3.11.4 and the FindXercesC.cmake file shipped with it. When I call find_package(XercesC REQUIRED) and XercesC is not in a standard location, I have to set XercesC_INCLUDE_DIR to its include directory and XercesC_LIBRARY to the location of the library. If I set

Re: [CMake] How to produce a -config.cmake file

2018-09-27 Thread Dorier, Matthieu
Thanks, those pointers helped a lot! Matthieu From: Thompson, KT Sent: Thursday, September 27, 2018 3:30:33 PM To: Dorier, Matthieu; cmake@cmake.org Subject: RE: How to produce a -config.cmake file Matthieu, I think are asking about the

[Cmake-commits] CMake branch, release, updated. v3.12.2-12-ga9694d6

2018-09-27 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, release has been updated via a9694d6538b5a975b08cea89bdd86ebce6166452 (commit) via

[CMake] Issues with Python, Locale, CTest and MacOS

2018-09-27 Thread Michael Jackson
As part of our build we use “mkdocs” to generate our documentation. Last night I thought I made an innocuous change to our CMake files which ended up blowing up all of our macOS builds (10.10 and 10.13 systems). It is all related to trying to get Python/Mkdocs/Click to use a locale that is

[CMake] CMake Cookbook is out!!

2018-09-27 Thread Eric Noulard
Hi CMakers, Hi try not do that too often but here comes a little promotion for a book which (I think) deserve attention. The CMake Cookbook by Radovan Bast, Roberto Di Remigio https://www.packtpub.com/application-development/cmake-cookbook I'm not the author but I participate in the book review

Re: [CMake] How to append a string on list inside a function

2018-09-27 Thread Marc CHEVRIER
Using a cache variable seems not required. A function creates a new scope and inherit a copy of all variables defined in the upper scope. So, by adding a set command using PARENT_SCOPE in your function you can update the variable in the parent scope: function(addTest targetName)

Re: [CMake] How to produce a -config.cmake file

2018-09-27 Thread Thompson, KT via CMake
Matthieu, I think are asking about the CMakePackageConfigHelpers CMake module (https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html) that defines the macro 'configure_package_config_file'. You can probably find several tutorials or examples by searching github or

Re: [CMake] LOCATION target property, generator expressions

2018-09-27 Thread Brad King
On 09/26/2018 10:23 AM, Hendrik Greving wrote: > Is there any way before 3.13 to achieve what I need? Right now we > modify LINK_FLAGS based on something that is computed with values > from LOCATION. [snip] > our cmake setup is using LOCATION property for two targets to compute > a relative path

[CMake] How to append a string on list inside a function

2018-09-27 Thread Romain LEGUAY
Hello everyone, I try to append a string (target name) on a list inside a function called in other CMakeLists. I have the following project’s tree: ├── CMakeLists.txt ├── test ├── CMakeLists.txt └── app ├── CMakeLists.txt ├── appA │ ├── CMakeLists.txt

Re: [CMake] file(TO_NATIVE_PATH ... ) and cross-compiling

2018-09-27 Thread Kukosa Tomáš
Unfortunately I encountered exactly the same problem. It would be nice to describe in documentation that file(TO_NATIVE_PATH ...) means "native for target system" and also would be nice to introduce the file(TO_HOST_NATIVE_PATH ...) subcommand. On 26.3.2018 19:40, Miroslav Keš wrote: > I'm

[CMake] How to produce a -config.cmake file

2018-09-27 Thread Dorier, Matthieu
Hi, I'm using cmake to build a library (damaris). Once installed, I would like users to be able to find it and its dependencies using find_package(damaris). If I understand correctly, the way to do that is to have cmake create and install a "damaris-config.cmake" file. Is there a tutorial