>> i'm having troubles with the midl compiler of generated msvc2013 project >> files: the generated projects contain a hardcoded output directory: >> $(IntDir). however having this property, the midl call fails for me. if >> i remove this property, or replace it with $(ProjectDir)/$(IntDir) it >> compiles fine. > > Can you please post a complete sample/minimal project tarball that > shows the error you see? > > It could also be demonstrated in the form of a patch to CMake that > updates Tests/VSMidl to show the problem.
i'd love to provide a reduced test case, though i can only reproduce this in a complex real-world buildsystem, with dozens of libraries and some include_external_msproject / add_dependencies pairs ... fwiw, i've been able to work around this with vanilla cmake-3.1, by moving the .idl file and the source including the iid file("_i.c") into a separate static library. -- that said, i wonder: why would it be ok to use a relative path in the generated project ... or, what would be the disadvantage of using an absolute path? best, tim -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers