[Cmake-commits] CMake branch, master, updated. v3.11.0-rc4-295-g9b3d395

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

[CMake] Custom Configurations and CMAKE__FLAGS__INIT

2018-03-21 Thread Marek Vojtko (Firaxis)
Hi, Do CMAKE__FLAGS__INIT variables not automatically populate CMAKE__FLAGS_ variables for *custom* configurations? When I use the _INIT variables for one of the default configuration names, e.g. CMAKE_C_FLAGS_DEBUG_INIT or CMAKE_C_FLAGS_RELEASE_INIT, they correctly populate their "usage"

[cmake-developers] INTERFACE IMPORTED example

2018-03-21 Thread Craig Scott
I swear I asked this a while back and there was an example given, but I have been unable to find it since. With changes done for CMake 3.11, I think the question deserves asking again anyway. Does anyone know of a specific example scenario where an INTERFACE IMPORTED library is the right choice

[CMake] Cygwin DS-5 Arm Cross-compiling and how to get past Compiler Check error w/ Absolute path

2018-03-21 Thread Jimi Damon
Hi, I have an issue running the 16.1 DS-5 Arm compiler tool suite that is based around the GNU arm embedded toolchain. The problem is that these compilers cannot process the Cygwin path structure ( Ie /cygdrive/c/path/to/file ). I have a build that works perfectly under Linux using CMake

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

2018-03-21 Thread Stephen McDowell
Disclaimer: I cannot speak to intent, and have never used these before. So since you’re cross compiling, when looking at the docs ( https://cmake.org/cmake/help/v3.0/command/file.html ), I think you can get away with using TO_CMAKE_PATH. I

Re: [CMake] Advice on how to remove duplicated code for object and interface library setup

2018-03-21 Thread Stephen McDowell
Hi Deniz, Thanks for the response! I tested it out and it seems to work exactly as you describe :) I don’t want to depend on an un-released version of CMake though. The original desire is because I kept making mistakes / adding definitions for one and not the other (code duplication at its

[CMake] Choosing SSE / AVX Flag Advice

2018-03-21 Thread Stephen McDowell
Hello, I was originally using -march=native for non-windows, but in my attempts to support embedded architectures learned that this flag is broken and/or does nothing for many compilers (fixed for ARM in gcc 8 I think though). Enter the glorious work of the folks at Vc:

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

2018-03-21 Thread Miroslav Keš
Hi! I have question concerning the file(TO_NATIVE_PATH ...) behavior. The documentation says: "The TO_NATIVE_PATH mode converts a cmake-style into a native path with platform-specific slashes (\ on Windows and / elsewhere)."  ... but it doesn't say if the decision is made based on the

Re: [CMake] should zlib be searched in CMAKE_PREFIX_PATH or am I confused?

2018-03-21 Thread Stephen McDowell
Hi Mario, Do you get different results if you set CMAKE_MODULE_PATH rather than CMAKE_PREFIX_PATH? I wrote a tutorial for how to install a library called librealsense, at the very bottom is what will interest you:

[Cmake-commits] CMake branch, master, updated. v3.11.0-rc4-294-ga13cfa2

2018-03-21 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 a13cfa246fee1ba99eeecda8b8e8d158d29841df (commit) via

[Cmake-commits] CMake branch, master, updated. v3.11.0-rc4-291-g3946cbc

2018-03-21 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 3946cbc505a066677efe1faea3cc2d051b1132bc (commit) via

[Cmake-commits] CMake branch, master, updated. v3.11.0-rc4-283-g64bb657

2018-03-21 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 64bb65777ad011d96c6bedca36b24df7d9a1371d (commit) via

[Cmake-commits] CMake branch, master, updated. v3.11.0-rc4-281-gdebe401

2018-03-21 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 debe4010a82a7cb75b12009893e797c8234eca9c (commit) via

[Cmake-commits] CMake branch, release, updated. v3.11.0-rc4-2-g2006e98

2018-03-21 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 2006e981dab0ea228f611756cdefef8ccfa33a51 (commit) via

[CMake] should zlib be searched in CMAKE_PREFIX_PATH or am I confused?

2018-03-21 Thread Mario Emmenlauer
Dear All, I use find_package(ZLIB) to detect zlib on Ubuntu 16.04 Linux. I have a newer zlib in /data/thirdparty that I'd like to use. To prefer my newer version I add -DCMAKE_PREFIX_PATH="/data/thirdparty". In my understanding, the documentation says CMAKE_PREFIX_PATH is searched first (1). But

[CMake] find_package() for static only / shared only

2018-03-21 Thread Mario Emmenlauer
I've googled this issue for a while now but found only few references (1,2) and no solution. I'd like to enforce that find_package() will only accept static or shared libraries. I would then set this option based on BUILD_SHARED_LIBS=(ON|OFF). I.e. I'd love to have something like: