[cmake-developers] Trying to access variable...
Robert Goulet
Robert.Goulet at autodesk.com
Fri May 1 13:16:21 EDT 2015
Ok, I thought that was the way to go to support a variable that can have different values per configuration, such as:
CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD
CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD_DEBUG
CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD_RELEASE
I will have to manually code this behavior?
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Friday, May 1, 2015 1:14 PM
To: Robert Goulet; cmake-developers at cmake.org
Subject: Re: [cmake-developers] Trying to access variable...
On 05/01/2015 12:02 PM, Robert Goulet wrote:
> target->GetMakefile()->GetFeature("CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD", i->c_str());
GetFeature is unrelated to CMake language variables.
Use GetDefinition instead.
-Brad
More information about the cmake-developers
mailing list