Re: [CMake] linking a C application with a C++ library

2015-06-02 Thread René J . V . Bertin
On Wednesday June 03 2015 02:44:29 René J.V. Bertin wrote:

> How do I instruct cmake to do this?

never mind:

set_target_properties(cseTest PROPERTIES LINKER_LANGUAGE CXX)

Sorry for the noise!

R.
-- 

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


[CMake] linking a C application with a C++ library

2015-06-02 Thread René J . V . Bertin
Hello,

I'm trying to write a cmake file for an older project of mine, which consists 
of a library (mostly C++) and a few test cases one of which is a C programme to 
test the library's functionality exported to C. I'd like to use a single cmake 
file, but am getting link error on the C app, most likely because it should be 
linked by the C++ linker (or at least with -X c++).

How do I instruct cmake to do this?

Thanks,
R.
-- 

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