[CMake] Question about searching for another toolchain

2019-02-16 Thread workbe...@gmx.at
Hello everyone, i'm realtively new to CMake and i find it awesome, the best building system ever ! Now to my question: I want to support either intel or amd specific functions in my application, that means i need either the amd or the intel sdk, i know how i can set another toolchain and st

Re: [CMake] Static libraries depending on libraries: only on headers/options/defines

2019-02-16 Thread Paul Smith
I wrote this function. At first attempt it seems to do what I want but I've definitely not completed my work so I may well still find issues with it. Basically it does everything that target_link_libraries() does (at least, it tries to as best as I understand it other than a bunch of properties I

Re: [CMake] Static libraries depending on libraries: only on headers/options/defines

2019-02-16 Thread Andreas Naumann
Hi Paul, I understand the relationship between libraries as strict, such that you always build all dependent libraries before. In your use case I thought about splitting the libraries in the actual target and the interface one. For example, you could create an interface library foo_interface a

[CMake] Static libraries depending on libraries: only on headers/options/defines

2019-02-16 Thread Paul Smith
Hi all; I'm working on modernizing our large complex CMake environment. It builds a number of different binaries from an even larger number of static libraries, and these libraries depend on each other as well, in that they need to include headers and, sometimes, -D options etc. I've used straig

[CMake] Remove folders created by install

2019-02-16 Thread Felix Crazzolara
Hi everyone For my smaller projects I'd like to have 'uninstall' functionality. To remove installed files I can call: xargs rm < build/install_manifest.txt Unfortunately this won't delete any folders generated by the installation. Is there a different file that keeps track of the created di

[CMake] fixup-bundle usability

2019-02-16 Thread Andreas Naumann
Dear CMakers, recently I tried to bundle an application in Windows. From the documentation [1] I see that I should provide the directories to the non-system libraries. But these information should be already in the properties of the targets, arent they? Is there any extension in cmake, that