diff options
author | Brad King <brad.king@kitware.com> | 2008-09-04 21:34:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-09-04 21:34:25 (GMT) |
commit | 3c5cf1bb8c4e146f3d3d177f2be9dc53869f5d74 (patch) | |
tree | 6705b688a2fcfe98ffaa27afba37b77244cdbf01 /Source/cmExportFileGenerator.cxx | |
parent | bf796f1434fd049ec77f7df5d4b8126b0d6ab96a (diff) | |
download | CMake-3c5cf1bb8c4e146f3d3d177f2be9dc53869f5d74.zip CMake-3c5cf1bb8c4e146f3d3d177f2be9dc53869f5d74.tar.gz CMake-3c5cf1bb8c4e146f3d3d177f2be9dc53869f5d74.tar.bz2 |
ENH: Allow a custom list of debug configurations
Create a DEBUG_CONFIGURATIONS global property as a way for projects to
specify which configuration names are considered to be 'debug'
configurations.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index e1bbe29..dc2efc5 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -177,11 +177,7 @@ cmExportFileGenerator cmTarget* target, ImportPropertyMap& properties) { // Compute which library configuration to link. - cmTarget::LinkLibraryType linkType = cmTarget::OPTIMIZED; - if(config && cmSystemTools::UpperCase(config) == "DEBUG") - { - linkType = cmTarget::DEBUG; - } + cmTarget::LinkLibraryType linkType = target->ComputeLinkType(config); // Construct the list of libs linked for this configuration. std::vector<std::string> actual_libs; |