[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] selective compilation according to suffix
From:       Mathias Gaunard <mathias.gaunard () ens-lyon ! org>
Date:       2012-05-31 1:43:42
Message-ID: 4FC6CCCE.5030805 () ens-lyon ! org
[Download RAW message or body]

On 29/05/2012 10:48, Ilias Miroslav wrote:
> Dear CMake experts,
> 
> in our project we have some categories of compiler flags, like 'safe flags'-no \
> optimization, 'runtime checking flags', 'profiling flags' and so on. 
> I would like to have defined own filename extensions according to  specific \
> compilers flags, let say 
> make VERBOSE=1 source_file.r  compiles source file (C,Fortran,C++) with runtime \
> checking flags make VERBOSE=1 source_file.s  creates object  without optimizatin
> make VERBOSE=1 source_file.rs  creates object file with runtime checking flags and \
> without optimization 
> and make source_file.o makes 'classic' object file.
> 
> Any clues, please ?

Just make a macro or function that generates those targets.
--

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic