MantisBT - CMake
View Issue Details
0010024CMakeCMakepublic2009-12-10 14:402016-06-10 14:31
Timothy St. Clair 
Kitware Robot 
normalfeatureN/A
closedmoved 
CMake-2-6 
 
0010024: Support for vsprops or build-env settings per target.
It is very useful to have custom env settings for a target during build time. e.g. when calling legacy scripts as part of your build process which require that extra information.

In visual studio this is done through property sheets of (.vsprops) files.

No tags attached.
diff basic-props-sheets.diff (1,792) 2014-03-15 10:16
https://public.kitware.com/Bug/file/5095/basic-props-sheets.diff
Issue History
2009-12-10 14:40Timothy St. ClairNew Issue
2010-07-21 16:17Timothy St. ClairNote Added: 0021444
2011-01-17 14:09David ColeAssigned To => David Cole
2011-01-17 14:09David ColeStatusnew => assigned
2011-01-17 14:09David ColeNote Added: 0024785
2011-01-17 14:18Timothy St. ClairNote Added: 0024787
2011-10-26 00:05David ColeAssigned ToDavid Cole =>
2011-10-26 00:05David ColeStatusassigned => backlog
2014-03-15 10:16Gregor JasnyFile Added: basic-props-sheets.diff
2014-03-15 10:20Gregor JasnyNote Added: 0035414
2014-07-10 01:14Ravi RamanNote Added: 0036332
2014-07-28 11:59Ravi RamanNote Deleted: 0036332
2016-06-10 14:27Kitware RobotNote Added: 0041632
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:27Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0021444)
Timothy St. Clair   
2010-07-21 16:17   
It would be ideal if it were part of target properties.
(0024785)
David Cole   
2011-01-17 14:09   
A proposed patch, or a pointer to more documentation about .vsprops files and how they work would be welcome.
(0024787)
Timothy St. Clair   
2011-01-17 14:18   
http://msdn.microsoft.com/en-us/library/a4xbdz1e(v=VS.80).aspx [^]
(0035414)
Gregor Jasny   
2014-03-15 10:20   
Hello,

I attached a proof-of-concept patch to add property sheets to VS 2012 vcxproj files.

Currently you can use it like:
cmake_minimum_required(VERSION 3.0)
add_executable(foo foo.cpp)
set_target_properties(foo PROPERTIES VS_PROPERTY_SHEETS "${CMAKE_CURRENT_SOURCE_DIR}/foo.props")


What's missing:
* I'd like to make the property sheets relative to the current CMake file like source files but got lost in the source.
* VS_PROPERTY_SHEETS_<CONFIG> handling (there are some headaches involved because property sheets are sensitive to ordering)

Thanks,
Gregor
(0041632)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.