View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015043CMakeCMakepublic2014-07-28 11:202016-06-10 14:31
ReporterRavi Raman 
Assigned ToKitware Robot 
PriorityhighSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSWindowsOS Version
Product VersionCMake 3.0 
Target VersionFixed in Version 
Summary0015043: How to convert Visual Studio .props file into cmake
DescriptionHello,

 We are using CMake 3.0 on Windows. Our main objective is to convert Microsoft Visual Studio built solution to CMake 3.0 solution.
 In the process of doing so, we have come across many Visual Studio property files (.props) which get included in the Visual Studio project files (.vcxproj) files.

 For example in a Visual Studio project file , the Property file (test.props) gets included as follows:

   <ImportGroup Label="PropertySheets">
     <Import Project="$(TestCfg)\test.props" />
   </ImportGroup>

 To achieve the same thing, in the CMakeLists file we are using the following command:

 set_target_properties(testproj PROPERTIES VS_PROPERTY_SHEETS "${TestCfg}/test.props")

 Note that we have set TestCfg appropriately in one of the .cmake files that we include in our CMakeLists.txt

 The cmake build is successful and the cmake VCX project also gets created. But that vcx project does not contain the entry of the test.props file.

 Please let us know what we are missing or doing wrong.
 Also, is there any other way to include .props files in cmake.

 Any help in this regard would be appreciated.
TagsNo tags attached.
Attached Files

 Relationships
related to 0015044closedKitware Robot How to convert existing Visual Studio .targets file to cmake 

  Notes
(0036472)
Brad King (manager)
2014-07-28 11:27

AFAIK we have no feature to add custom ImportGroup elements or property sheets entries. I'm not familiar with a "VS_PROPERTY_SHEETS" target property. Where did you see that?
(0042593)
Kitware Robot (administrator)
2016-06-10 14:29

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.

 Issue History
Date Modified Username Field Change
2014-07-28 11:20 Ravi Raman New Issue
2014-07-28 11:27 Brad King Note Added: 0036472
2014-07-28 11:27 Brad King Severity major => feature
2014-07-28 11:27 Brad King Status new => backlog
2014-07-28 11:42 Brad King Relationship added related to 0015044
2016-06-10 14:29 Kitware Robot Note Added: 0042593
2016-06-10 14:29 Kitware Robot Status backlog => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team