[cmake-developers] [CMake 0015654]: Need generator expression CONFIG that works for both multi-config and single config generators
Mantis Bug Tracker
mantis at public.kitware.com
Wed Jul 15 13:35:05 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15654
======================================================================
Reported By: James Bigler
Assigned To:
======================================================================
Project: CMake
Issue ID: 15654
Category: CMake
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-07-15 13:35 EDT
Last Modified: 2015-07-15 13:35 EDT
======================================================================
Summary: Need generator expression CONFIG that works for both
multi-config and single config generators
Description:
The value of $<CONFIG> works just fine for generators like Visual Studio (e.g.
Debug, RelWithDebInfo), but for generators like Makefiles it maps to
CMAKE_BUILD_TYPE, which is less useful for doing stuff like this:
file(GENERATE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$<CONFIG>/myfile)
This will do the right thing for VS, but not for Makefile. It would be helpful
to have such a value that could make this work.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-07-15 13:35 James Bigler New Issue
======================================================================
More information about the cmake-developers
mailing list