The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=11311 ====================================================================== Reported By: Julian Lim Assigned To: ====================================================================== Project: CMake Issue ID: 11311 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2010-10-13 12:49 EDT Last Modified: 2010-10-13 12:49 EDT ====================================================================== Summary: Visual Studio 2008 MIDL and cmake 2.8.2 Description: I'm submitting a patch for 2.8.2 cmake which consist of a patch (described in issue http://www.cmake.org/Bug/view.php?id=8165) that is designed cmake 2.8 AND 3 more items that we worked on.
We are working on Visual Studio 2008 COM project which has IDL files and need MIDL to generate the .TLB and header and source files, and we faced with 2 major issues. (1) Looking at 2.8.2 code, the patch from http://www.cmake.org/Bug/view.php?id=8165 hasn’t been applied. After we manually apply it, got us a step forward and now we faced with issue http://www.cmake.org/Bug/view.php?id=2. http://www.vtk.org/Bug/view.php?id=8165 1>------ Build started: Project: vbabc, Configuration: Release Win32 ------ 1>Creating Type Library... 1>midl : command line warning MIDL1009 : unknown argument ignored "..\..\..\..\source\libvbabc\vbabc.idl" 1>Processing Release\"" 1>Release"" 1>c1 : fatal error C1083: Cannot open source file: 'Release""': Invalid argument 1>midl : command line error MIDL1003 : error returned by the C preprocessor (2) 1>Build log was saved at "file://c:\source\build\msvc\vc\libvbabc\vbabc.dir\Release\BuildLog.htm" 1>vbabc - 2 error(s), 1 warning(s) ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========== (2) After issue http://www.cmake.org/Bug/view.php?id=1 resolved, we could finally MIDL tools ran against IDL files. There were 2 issues we face when issue http://www.cmake.org/Bug/view.php?id=1 is resolved. a. The .TLB files are generated inside build directory (example, vbabc.dir/Release) but Visual Studio is still looking for it in the CMAKE Source directory. Yes, we do want these files to be generated in vbabc.dir/Release which is the object directory because this will enable us to build from multiple processes and do not interfere with each build. b. The generated headers is not in any Include path that when our source include it an error occurs. c. For Linker, DebugInformation is YES for Release version. The patch I'm submitting face all these issues in 2.8.2. -Julian Lim Tradebot Systems ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2010-10-13 12:49 Julian Lim New Issue 2010-10-13 12:49 Julian Lim File Added: cmLocalVisualStudio7Generator.cxx.2.8.2.patch ====================================================================== _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
