View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010687CMakeCMakepublic2010-05-07 09:282012-03-16 13:07
ReporterGabriel Kalkuhl 
Assigned ToDavid Cole 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0010687: VC 2010 generator ignores .idl Files and doesn't produce .tlb file
DescriptionThe Visual Studio 2010 generator has no rule to recognize .idl for generating typelibraries.

Instead of generating
<Midl Include="foo.idl" />
it generates
<None Include="foo.idl" />

Regards
Gabriel
Additional InformationSteps to reproduce:
- Generate new MFC ActiveX Contol project in VS10 using the wizard
- Insert a CMakeLists.txt with following content:

SET(NAME "vs10test")
project(${NAME})

cmake_minimum_required(VERSION 2.4)
cmake_policy(VERSION 2.6)
SET(CMAKE_MFC_FLAG 2)

FILE(GLOB HEADERS *.h)
FILE(GLOB SRC *.cpp *.c *.def *.odl *.idl *.rc res/*.rc2)
SET(SRCFILES
    ${SRC}
    ${HEADERS})

ADD_LIBRARY(${NAME} SHARED ${SRCFILES})
SET_TARGET_PROPERTIES(${NAME} PROPERTIES SUFFIX ".ocx")
SET_TARGET_PROPERTIES(${NAME} PROPERTIES COMPILE_FLAGS "-D_WINDLL -D_AFXDLL -D_USRDLL")

- compare wizard generated .vcxproj with cmake generated file
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0011461closedDavid Cole finish midl support for VS2010 Generator 
related to 0008165closedDavid Cole vs2005 midl chokes on CMAKE_INTDIR 
related to 0011311closedDavid Cole Visual Studio 2008 MIDL and cmake 2.8.2 
related to 0013043closedKitware Robot IDL files do not supported if used NMake Makefiles generator 

  Notes
(0024146)
Gabriel Kalkuhl (reporter)
2010-12-15 09:22

Building the same project with VS9 Generator works fine.
I think cmake is missing a rule for handling odl/idl-Files in VS10 Generator.
(0024420)
David Cole (manager)
2011-01-05 11:08

Fixed by this commit, just pushed to CMake 'next':
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=13caaa3eb74a11dbf067409ea129321718d34dfe [^]

I expect this will make it into the upcoming CMake 2.8.4 release. I will update this and related issues with another note if that expectation turns out to be too optimistic... :-)
(0026307)
David Cole (manager)
2011-05-02 14:45

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2010-05-07 09:28 Gabriel Kalkuhl New Issue
2010-12-15 09:16 David Cole Assigned To => David Cole
2010-12-15 09:16 David Cole Status new => assigned
2010-12-15 09:16 David Cole Relationship added related to 0008165
2010-12-15 09:16 David Cole Relationship added related to 0011311
2010-12-15 09:22 Gabriel Kalkuhl Note Added: 0024146
2010-12-15 12:14 David Cole Relationship added duplicate of 0011461
2010-12-17 07:35 David Cole Target Version => CMake 2.8.4
2011-01-05 11:08 David Cole Note Added: 0024420
2011-01-05 11:08 David Cole Status assigned => resolved
2011-01-05 11:08 David Cole Fixed in Version => CMake 2.8.4
2011-01-05 11:08 David Cole Resolution open => fixed
2011-05-02 14:45 David Cole Note Added: 0026307
2011-05-02 14:45 David Cole Status resolved => closed
2012-03-16 13:07 Brad King Relationship added related to 0013043


Copyright © 2000 - 2018 MantisBT Team