Message: Re: cmake additional compiler flags Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: cmake additional compiler flags 

Forum: Installation and Configuration
Re: None cmake additional compiler flags (Tom Roberts)
Re: Note Re: cmake additional compiler flags (Ben Morgan)
Date: 24 Feb, 2012
From: Tom Roberts <Tom Roberts>

This does not work (in a Cygwin bash shell on Windows Xp):
    export CPPFLAGS="-DCOIN_NOT_DLL -DSOWIN_NOT_DLL"
    export CXXFLAGS="-DCOIN_NOT_DLL -DSOWIN_NOT_DLL"
    export CCFLAGS="-DCOIN_NOT_DLL -DSOWIN_NOT_DLL"
    cmake -G "Unix Makefiles" <other args>
    make
    ... #error Define either COIN_DLL or COIN_NOT_DLL

Note that during configuration I get a message "setting default compiler flags for CXX", but grep cannot find that string in any file under geant4.9.5/source. Indeed the only uses of CXXFLAGS and CPPFLAGS appear to be in the various GNUmakefile-s, not the cmake files. So this is apparently a cmake feature that I don't understand.

So the question remains: how do I pass these arguments to the cl compiler?

(Without visualization this works fine; there's no need for those defines.)

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: cmake additional compiler flags   (Ben Morgan - 24 Feb, 2012)
(_ None: Re: cmake additional compiler flags   (Tom Roberts - 27 Feb, 2012)
 Add Message Add Message
to: "Re: cmake additional compiler flags"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]