ke.org] On Behalf Of Stephen Kelly
Sent: Tuesday, November 25, 2014 16:14
To: cmake@cmake.org
Subject: Re: [CMake] BUILD_INTERFACE genex used even in install(EXPORT...
Mueller-Roemer, Johannes Sebastian wrote:
> For clarification:
>
> As an imported target can't have debug and opt
Mueller-Roemer, Johannes Sebastian wrote:
> For clarification:
>
> As an imported target can't have debug and optimized keywords, I can't
> simply use $
> $ But have to do
> $ $<$:
> ...
Yes, but for the user of the target, it's just
target_link_libraries(mytgt Boost::Coroutine)
This is acade
-Original Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Stephen Kelly
Sent: Tuesday, November 25, 2014 15:05
To: cmake@cmake.org
Subject: Re: [CMake] BUILD_INTERFACE genex used even in install(EXPORT...
Mueller-Roemer, Johannes Sebastian wrote:
> It appears that wasn
Mueller-Roemer, Johannes Sebastian wrote:
> It appears that wasn't really the issue, but rather that I had my CMake
> minimum version set to 2.8.11 and not 2.8.12.
See the reply from Nils and the documentation link I posted previously.
> Is there a cleaner solution
> for the "debug" and "optimi
On 11/25/2014 02:31 PM, Mueller-Roemer, Johannes Sebastian wrote:
It appears that wasn't really the issue, but rather that I had my CMake minimum
version set to 2.8.11 and not 2.8.12.
cmake_minimum_required(VERSION 2.8.12) sets policy CMP0022 to NEW
because the policy was introduced in 2.8.12
Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Stephen Kelly
Sent: Tuesday, November 25, 2014 13:40
To: cmake@cmake.org
Subject: Re: [CMake] BUILD_INTERFACE genex used even in install(EXPORT...
Mueller-Roemer, Johannes Sebastian wrote:
>
Mueller-Roemer, Johannes Sebastian wrote:
> produces a file containing:
> IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
> "${Boost_COROUTINE_LIBRARY_RELEASE}"
You need to make sure policy CMP0022 is NEW for the
BUILD_INTERFACE to be handled correctly. Unfortunately
there is no warning in this case.
I am trying to add a library via it's variable(s) in an installed (static
library) target, but BUILD_INTERFACE appears to be used for the generation of
*-targets-*.cmake even when using install(EXPORT...), instead of
INSTALL_INTERFACE:
CMakeLists.txt
[...]
target_link_libraries(${PROJECT_NAME}