Hello. I'm using CMake as build system for a C/CXX project and i've faced
the following problem: I need to compile some sources as bytecode for VM.
This is achieved by using different linker (with different flags) and,
probably, different compiler. At the moment, the only solution i see is to
create two new CMake "languages" - BC_C and BC_CXX by setting
CMAKE_BC_C_{COMPILER,LINK_EXECUTABLE}. Then, i want to set LANGUAGE and
COMPILE_FLAGS properties on files, which i want to be compiled as bytecode
and finally define LINKER_LANGUAGE property on target.
Still, i need the way, to "inherit" all compiler flags and probably linker
from CXX language, and i don't know how to do it.

Also, if you know how to to implement such thing in better way, please share
your thoughts.

Thanks in advance.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to