[CMake] INSTALL issues
Joshua Jensen
jjensen at workspacewhiz.com
Fri May 18 04:01:32 EDT 2007
I have some questions about the process by which the INSTALL() command
works:
-------
Despite CMAKE_BUILD_TYPE being set to Debug in CMakeSetup for my NMake
project, cmLocalGenerator::GenerateInstallRules() creates
cmake_install.cmake files with a default line of
SET(CMAKE_INSTALL_CONFIG_NAME "Release"). From the NMake install call,
BUILD_TYPE isn't set (nor is CMAKE_BUILD_TYPE). Commenting out the
following line in this function solves the issue, it seems, and writes
CMAKE_BUILD_TYPE's current value (the appropriate default, I believe)
into the cmake_install.cmake files:
// if(configurationTypes.empty())
{
config = this->Makefile->GetDefinition("CMAKE_BUILD_TYPE");
}
Visual Studio's INSTALL project calls CMake directly, feeding it a
BUILD_TYPE definition on the command line. I don't see how to do this
using 'nmake install'.
-------
In this same function, default_order refers to the basic CMake build
types. If you override those build types with your own, this check
doesn't make much sense.
-------
Where am I going wrong here, and what can I do to fix it?
Thanks.
Josh
More information about the CMake
mailing list