On 10/22/2013 11:04 AM, Brian Wainscott wrote:
Arjen,
Thanks -- that was more or less what I understood also. And I was thinking
about
that approach, but frankly just expected that if that was a limitation of VS,
and
cmake builds for VS, then cmake should do that for me. I'm just surprised it
doesn't, and was hoping someone would know of a simple way to tell cmake to
build
two separate project files for me.
Hi,
I have thought about CMake doing something automatically here, however,
it could get tricky pretty fast, and it is pretty easy to fix in the
CMake file of the project.
Your example would be:
enable_language(Fortran)
enable_language(C)
add_library(tst_lib_f tst.F)
add_executable(tst cfunc.c)
target_link_libraries(tst tst_lib_f)
You run into trouble with things like shared libraries. However, it is
not impossible. There just has not been enough interest to date in
implementing this feature.
-Bill
--
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://www.cmake.org/mailman/listinfo/cmake