Re: [CMake] using `install()` with EXPORT and COMPONENT

2019-09-29 Thread Craig Scott
On Sun, Sep 29, 2019 at 6:38 AM Stefan Seefeld wrote: > Hello, > > I'm working on a library project that will be packaged in multiple > components. A "runtime" component will contain the (shared) library, an a > "dev" component the associated headers (and perhaps other development-only > artefact

Re: [CMake] using `install()` with EXPORT and COMPONENT

2019-09-29 Thread Stefan Seefeld
Hi Craig, thanks for the detailed explanation ! On 2019-09-29 5:13 a.m., Craig Scott wrote: If all of your headers should be installed to a single directory, then you can list the headers in the target's PUBLIC_HEADER or PRIVATE_HEADER target property, then make sure you add those destinati

Re: [CMake] printing CMAKE_CXX_FLAGS_* based on build type

2019-09-29 Thread Eric Doenges
Unfortunately, the standard values for CMAKE_BUILD_TYPE only have their first letter capitalized, i.e. for a release build CMAKE_BUILD_TYPE will normally be "Release". To use it like you want to, it would need to be "RELEASE". To get around this problem, we define an all upper-case BUILD_TYPE i