2009/1/27 Jose Luis Blanco <jlbla...@ctima.uma.es>: > Hi all! > > Issue 1: > > Porting an old project to CMake I realized there's no way to modify the > predefined behavior when one adds an IDL file to a Visual Studio > project, which is associating it to "midl". > > In our project we'd rather need to execute a different IDL compiler > (TAO_IDL), but declaring an "add_custom_command" i.e. in PREBUILD has no > effect since the "midl" association is hard-coded in the generator.
There is a pending bug open for this issue: http://public.kitware.com/Bug/view.php?id=7845 > I am thinking on writing a patch for this, but prefer to have opinions > about the preferred way to do it to be consistent with the rest of CMake > commands and variables. > > > Issue 2: > > Also related to the compilation of IDL files: If .cpp/.h files, which > does not exist yet but will be built by the IDL compiler, are added to > the project, CMake correctly complains about non-existing sources... Is > there any way to force CMake to add them and "trust us" that those > sources will exist someday? Yes there is you can flag the files as "GENERATED" with: set_source_files_properties(file1 file2 .... PROPERTIES GENERATED TRUE) -- Erk _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake