Re: [CMake] What is the best way to handle Boost dependencies in a package config file

2016-01-26 Thread Michi Henning
We use this, which works fine for me on Ubuntu: find_package(Boost COMPONENTS system filesystem regex serialization thread log REQUIRED) Cheers, Michi. > On 27 Jan 2016, at 12:54 , Johnson, Matt (GE Healthcare) > wrote: > > I like package config files. I want to use more of them. However,

[CMake] CMAKE__COMPILER has disappeared?

2015-10-12 Thread Michi Henning
When using ccmake (cmake-curses-gui), I used to easily be able to switch between clang and gcc by hitting "t" and changing the CMAKE_CXX_COMPILER variable to "c++" or "clang++" as appropriate. Doing this would also automatically adjust the path to point at ccache (if ccache is installed). Now,

Re: [CMake] How to locate clang-format

2014-01-02 Thread Michi Henning
On 2 Jan 2014, at 14:13 , Matt Wilbur wrote: > I am a CMake newbie (like, just this week), and this is only a partial > solution (I think I could probably flesh it out if we knew what the version > string would look like in all situations), but maybe something like this: find_package will alw

[CMake] How to locate clang-format

2014-01-01 Thread Michi Henning
I would like to add a target to format my code with clang-format. However, clang-format isn't installed as "clang-format" (at least not on Ubuntu). Instead, it installs itself as "clang-format-3.4", "clang-format-3.5", etc. Is there a reasonable way to locate the binary with the largest version