Re: [CMake] Populate INCLUDE_DIRECTORIES of object libraries from INTERFACE_INCLUDE_DIRECTORIES of other libraries

2017-11-14 Thread Florent Castelli
Which version of CMake and Ninja are you using? It seems like you are trying to reimplement what has been added in CMake 3.9. Quote from the changelog: The Ninja generator has loosened the dependencies of object compilation. Object compilation now depends only on custom targets and custom com

[CMake] Using CMake for general scripting tasks?

2017-11-14 Thread Sebastian Gniazdowski
> Why do you want to integrate with CMake? > I mean, the scripting features of CMake are a great way to create platform- > independent scripts for a build system, but you already know that your users > have a proper shell installed. CMake is a swiss army knife. Coding CMake is a quality time, and

[CMake] Making existing, compiled projects CMake aware

2017-11-14 Thread Saad Khattak
Hi, I tried searching for an example project (perhaps already on github) to follow but my Google skills have failed me. There are some projects that are already compiled and I would like to fork those projects and write a CMakeLists.txt file for them such that they can be added by other CMake pro

[CMake] Populate INCLUDE_DIRECTORIES of object libraries from INTERFACE_INCLUDE_DIRECTORIES of other libraries

2017-11-14 Thread Bernhard Burgermeister
Hello, I'm trying to improve parallelization of a massive parallel Ninja/icecream build by using object libraries. We are already using interface include directories extensively. While moving the compilation to separate object libraries I need to define the include directories for these object ta

[CMake] FindBLAS.cmake broken on macOS?

2017-11-14 Thread Robin Verschueren
Dear all, I'm having difficulty making CMake find any BLAS on my macOS. I have two: 1. OpenBLAS installed with homebrew: /usr/local/opt/openblas/lib/libopenblasp-r0.2.19.dylib 2. System BLAS: /System/Library/Frameworks/Accelerate.framework//Versions/A/Frameworks/vecLib.framework/Vers

[CMake] Finding and including/linking external projects generated by CMake

2017-11-14 Thread Saad Khattak
Hi, Let's say I have a project I cloned from github which uses CMake to build. What is the best way to link to said dependency assuming the dependency is already built and installed [1]. So let's say I have LibA that is a dependency to my ProjA. LibA has already been built. What would be the 'cor

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread oliver . zabel
Hi, Sorry - I don’t get the hint :) thanks, I will look into it! Cheers! Oliver -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information o

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread Konstantin Tokarev
14.11.2017, 15:32, "oliver.za...@egoproducts.com" : > Hi, > > Thank you. There is unfortunately not the right toolchain there - according > my question I do have my toolchain Running - but with a custom command and > I would like to know whether there is a better way. I meant you can use this f

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread oliver . zabel
Hi, Thank you. There is unfortunately not the right toolchain there - according my question I do have my toolchain Running - but with a custom command and I would like to know whether there is a better way. Cheers! -- Powered by www.kitware.com Please keep messages on-topic and check the CMa

Re: [CMake] Meaning of `*' in find_library()

2017-11-14 Thread Konstantin Tokarev
14.11.2017, 14:56, "Robin Verschueren" : > Dear all, > > I'm having some troubles using the 'PATHS' argument to find_library. More > specifically, I'm trying to find the gfortran libraries > (/usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.so on my system). > > If I call > > find_library(FORTRAN_LI

[CMake] Meaning of `*' in find_library()

2017-11-14 Thread Robin Verschueren
Dear all, I'm having some troubles using the 'PATHS' argument to find_library. More specifically, I'm trying to find the gfortran libraries ( */usr/lib/gcc/x86_64-linux-gnu/5/libgfortran.so* on my system). If I call find_library(FORTRAN_LIBRARY NAMES gfortran PATHS "/usr/lib/gcc/x86_64-l

Re: [CMake] Using CMake for general scripting tasks?

2017-11-14 Thread Johannes Zarl-Zierl
Hello, On Dienstag, 14. November 2017 01:39:47 CET Sebastian Gniazdowski wrote: > But maybe someone used CMake for less specialized scripting tasks and would > share? I'm writing Zsh plugin manager, Zplugin, and I want to integrate > with CMake somehow, to get some swiss army knife features. Why

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread Konstantin Tokarev
14.11.2017, 12:37, "oliver.za...@egoproducts.com" : > Hi, > > No one any idea? Look into Modules/Compiler directory of CMake installation, it implements support for many different compilers > > Thanks! > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake

Re: [CMake] Using CMake for general scripting tasks?

2017-11-14 Thread Konstantin Tokarev
14.11.2017, 03:46, "Sebastian Gniazdowski" : > Hello > CMake has so many powerful features that I always suspected, that it can be > used for tasks normally handled by Bash or sh. I've found following package > manager written in CMake: > > https://docs.hunter.sh/en/latest/overview/what-is-it.h

Re: [CMake] Toolchain with non-gcc argument format

2017-11-14 Thread oliver . zabel
Hi, No one any idea? Thanks! -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: htt

Re: [CMake] Using CMake for general scripting tasks?

2017-11-14 Thread Raymond Wan
Hi Sebastian, On Tue, Nov 14, 2017 at 8:39 AM, Sebastian Gniazdowski wrote: > So I think this project confirms CMake's potential for handling general > scripting tasks. However, it's hard to get some inspiration from Hunter, it's > just a large collection of CMake packages focused on one speci