MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0016003 | CMake | CMake | public | 2016-03-02 14:06 | 2016-06-10 14:31 |
Reporter | Dmitry Sokolov | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | block | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | amd64 | OS | Windows | OS Version | 10.0.10586.29 |
Product Version | CMake 3.4.1 | ||||
Target Version | Fixed in Version | ||||
Summary | 0016003: "Visual Studio" generators produces wrong settings for .idl files (regression). | ||||
Description | CMakeLists.txt: add_executable(app main.cpp file.idl) set_source_files_properties(file.idl PROPERTIES COMPILE_FLAGS "/nologo /char signed /env win32 /tlb \"file.tlb\" /I \"../include\" /out \"${PROJECT_BINARY_DIR}/include\" /h \"file.h\" /dlldata \"dlldata.c\" /iid \"file_i.c\" ") Files main.cpp, file.idl are empty. Generating: cmake.exe -G "Visual Studio 12 2013" path\to\CMakeLists.txt CMake v3.4.x, v3.5.x will produce a .vcxproj: <ItemGroup> <Midl Include="path\to\file.idl" /> <ClCompile Include="path\to\main.cpp" /> </ItemGroup> while CMake v3.2.1 will produce <ItemGroup> <Midl Include="path\to\file.idl"> <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <DefaultCharType Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Signed</DefaultCharType> <DllDataFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">dlldata.c</DllDataFileName> <HeaderFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">file.h</HeaderFileName> <InterfaceIdentifierFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">file_i.c</InterfaceIdentifierFileName> <OutputDirectory Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">include</OutputDirectory> <SuppressStartupBanner Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</SuppressStartupBanner> <TargetEnvironment Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Win32</TargetEnvironment> <TypeLibraryName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">file.tlb</TypeLibraryName> ... </Midl> <ClCompile Include="path\to\main.cpp" /> </ItemGroup> | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-03-02 14:06 | Dmitry Sokolov | New Issue | |||
2016-03-07 11:32 | Brad King | Note Added: 0040639 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042955 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => 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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|