[CMake] link only with targets feature

2019-02-11 Thread Starka Tomáš
tldr; It would be wonderful to have function or signature for target_link_libraries tha would link only to a targets. Did I overlook something? like target_link_libraries(name [PUBLIC...] TARGETS myFavouriteLib ... QUIET/VERBOSE) (*read with the voice of a child*) Dear CMake developers,

Re: [CMake] Syntax to document cmake files, functions and macros

2019-02-11 Thread Marc Herbert
Le jeu. 31 janv. 2019 à 23:09, Torsten Robitzki a écrit : > > We are working on a larger CMake project and we use Sphinx. We use > sphinxcontrib.moderncmakedomain as extension, which adds CMake syntax > highlighting and sphinx.ext.intersphinx to allow us, to refer to the > original CMake document

[CMake] What is the best practice for installing custom CMake modules?

2019-02-11 Thread Timothy Wrona
I've written a custom CMake module (MyModule.cmake) and would like to install it in a sensible location on my system so my other CMake projects can find it easily. First of all, is there an accepted standard way of doing this? If not, is my approach below acceptable and considered good practice?

[CMake] [CMAKE] Disable testing when building using bootstrap

2019-02-11 Thread Jon Haitz Legarreta Gorroño
Hi, I'm trying to build CMake from sources using the `bootstrap` script. Please, correct me if I'm wrong, but it looks like CMake is being built with `BUILD_TESTING=ON` by default. I'd like to disable testing (and any other non-essential option), but AFAIK bootstrap does not expose the `-DBUILD_