Re: [CMake] Mix Debug and Release Flags In One Library

2014-05-11 Thread sind...@gmail.com
BUG -DDEBUG -O1", you can set the COMPILE_FLAGS to "-DNDEBUG -UDEBUG > -O3" and (in my experience with GCC and Clang) the compiler will prefer the > latter flags. > > Cheers, > Jack > > > On Tue, May 6, 2014 at 8:13 AM, > sind...@gmail.com > >wrote: > >&

[CMake] Mix Debug and Release Flags In One Library

2014-05-06 Thread sind...@gmail.com
Dear All, We currently have a FORTRAN library we’re building with CMake (around 1000 files of FORTRAN). ADD_LIBRARY( My_Fortran_Lib ……. ) For the release build we set the release compilation flags with “CMAKE_Fortran_FLAGS_RELEASE” and set “CMAKE_BUILD_TYPE” to “Release” for those flags to b

Re: [CMake] Automatically Detecting Basic Fortran Dependencies

2011-05-25 Thread sind...@gmail.com
his simple example and it worked fine as well. I wonder if this approach has any drawbacks though? Thanks again for all of your help, I really appreciate it! M. Sindi On Tue, May 24, 2011 at 3:44 PM, Brad King wrote: > On 5/23/2011 2:15 PM, sind...@gmail.com wrote: > > I have the bel