[CMake] BUILD_INTERFACE genex used even in install(EXPORT...

Mueller-Roemer, Johannes Sebastian Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de
Tue Nov 25 08:31:09 EST 2014


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.
Is there a cleaner solution for the "debug" and "optimized" keyword issue than using individual library variables?

--
Johannes S. Mueller-Roemer, MSc
Wiss. Mitarbeiter - Interactive Engineering Technologies (IET)

Fraunhofer-Institut für Graphische Datenverarbeitung IGD
Fraunhoferstr. 5  |  64283 Darmstadt  |  Germany
Tel +49 6151 155-606  |  Fax +49 6151 155-139
johannes.mueller-roemer at igd.fraunhofer.de  |  www.igd.fraunhofer.de

-----Original Message-----
From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Stephen Kelly
Sent: Tuesday, November 25, 2014 13:40
To: cmake at cmake.org
Subject: Re: [CMake] BUILD_INTERFACE genex used even in install(EXPORT...

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.

See 

 http://www.cmake.org/cmake/help/v3.1/manual/cmake-policies.7.html

for more.

Thanks,

Steve.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list