[CMake] Adding new language - source dependencies

2018-11-24 Thread Petr Penzin
Hello, I have followed instructions in CMakeAddNewLanguage.txt [1] to add support for Haskell, but I am a bit stuck on detecting dependencies between source files. Haskell source compiles to a source file and an "interface file" (similar to Fortran module file), which is needed for compiling

Re: [CMake] Adding new language.

2011-03-18 Thread arrowdodger
Okay, thanks again for your help. ___ 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:

Re: [CMake] Adding new language.

2011-03-17 Thread Michael Hertling
On 03/15/2011 06:30 PM, arrowdodger wrote: On Tue, Mar 15, 2011 at 12:20 PM, Michael Wild them...@gmail.com wrote: Just one warning: AFAIK these rule variables are only used for Makefile-based generators, *NOT* for Xcode and VisualStudio and the like. I'd prefer the route via

Re: [CMake] Adding new language.

2011-03-15 Thread arrowdodger
On Tue, Mar 15, 2011 at 1:44 AM, Michael Hertling mhertl...@online.dewrote: To be exact, it's a rule variable which describes how to compile a C source file to an object file. On my system, it currently expands to: CMAKE_C_COMPILER DEFINES FLAGS -o OBJECT -c SOURCE AFAIK, these rule

Re: [CMake] Adding new language.

2011-03-15 Thread Michael Wild
On 03/15/2011 09:53 AM, arrowdodger wrote: On Tue, Mar 15, 2011 at 1:44 AM, Michael Hertling mhertl...@online.dewrote: To be exact, it's a rule variable which describes how to compile a C source file to an object file. On my system, it currently expands to: CMAKE_C_COMPILER DEFINES FLAGS -o

Re: [CMake] Adding new language.

2011-03-15 Thread arrowdodger
On Tue, Mar 15, 2011 at 12:20 PM, Michael Wild them...@gmail.com wrote: Just one warning: AFAIK these rule variables are only used for Makefile-based generators, *NOT* for Xcode and VisualStudio and the like. I'd prefer the route via add_custom_command/add_custom_target... Michael Oh,

[CMake] Adding new language.

2011-03-14 Thread arrowdodger
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

Re: [CMake] Adding new language.

2011-03-14 Thread Michael Hertling
On 03/14/2011 03:15 PM, arrowdodger wrote: 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

Re: [CMake] Adding new language.

2011-03-14 Thread arrowdodger
On Mon, Mar 14, 2011 at 7:16 PM, Michael Hertling mhertl...@online.dewrote: 2) If you collect the affected files in a separate directory - which is probably recommendable anyway - you might set CMAKE_C_COMPILE_OBJECT, CMAKE_C_CREATE_SHARED_LIBRARY, CMAKE_C_LINK_EXECUTABLE etc. as well

Re: [CMake] Adding new language.

2011-03-14 Thread Michael Hertling
On 03/14/2011 06:42 PM, arrowdodger wrote: On Mon, Mar 14, 2011 at 7:16 PM, Michael Hertling mhertl...@online.dewrote: 2) If you collect the affected files in a separate directory - which is probably recommendable anyway - you might set CMAKE_C_COMPILE_OBJECT,