[cmake-developers] [CMake 0015043]: How to convert Visual Studio .props file into cmake

Mantis Bug Tracker mantis at public.kitware.com
Mon Jul 28 11:20:41 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.gccxml.org/Bug/view.php?id=15043 
====================================================================== 
Reported By:                Ravi Raman
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15043
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2014-07-28 11:20 EDT
Last Modified:              2014-07-28 11:20 EDT
====================================================================== 
Summary:                    How to convert Visual Studio .props file into cmake
Description: 
Hello,

 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. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-07-28 11:20 Ravi Raman     New Issue                                    
======================================================================



More information about the cmake-developers mailing list