Re: [cmake-developers] Knowing if a C project is being built

2012-02-22 Thread Rolf Eike Beer
Brad King wrote: > On Wed, Feb 22, 2012 at 11:32 AM, Rolf Eike Beer wrote: > >> Use CMAKE__COMPILER_LOADED to determine which > >> languages are enabled. > > > > In the last modification in FindOpenMP I used the ENABLED_LANGUAGES > > property. Which of both ways is the preferred one? > > I have

Re: [cmake-developers] Knowing if a C project is being built

2012-02-22 Thread Brad King
On Wed, Feb 22, 2012 at 11:32 AM, Rolf Eike Beer wrote: >> Use CMAKE__COMPILER_LOADED to determine which >> languages are enabled. > > In the last modification in FindOpenMP I used  the ENABLED_LANGUAGES property. > Which of both ways is the preferred one? I have no preference. Both are document

Re: [cmake-developers] Knowing if a C project is being built

2012-02-22 Thread Rolf Eike Beer
Brad King wrote: > On 2/21/2012 5:47 PM, Stephen Kelly wrote: > >> add_library(mylib mylib.c) > >> generate_export_header(mylib) > > > > I'm looking into fixing this bug, and I was wondering how to. I have never > > built C code with CMake. > > > > I will need to conditionally call different chec

Re: [cmake-developers] Knowing if a C project is being built (Was Re: [CMake 0012959]: GenerateExportHeaders does not work for C)

2012-02-22 Thread Brad King
On 2/21/2012 5:47 PM, Stephen Kelly wrote: >> add_library(mylib mylib.c) >> generate_export_header(mylib) > > I'm looking into fixing this bug, and I was wondering how to. I have never > built C code with CMake. > > I will need to conditionally call different check_compiles macros. Can I so > s

[cmake-developers] Knowing if a C project is being built (Was Re: [CMake 0012959]: GenerateExportHeaders does not work for C)

2012-02-21 Thread Stephen Kelly
Mantis Bug Tracker wrote: > == > Summary:GenerateExportHeaders does not work for C > Description: > The module GenerateExportHeader creates some defines that may works for C > too, but actually the module is onl