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

None cmake additional compiler flags 

Forum: Installation and Configuration
Date: 22 Feb, 2012
From: Tom Roberts <Tom Roberts>

I am building Geant.9.5 using cmake -G "Unix Makefiles" on Windows Xp and Cygwin. I want to build via make, just as on Linux and Mac; this program builds and runs fine on both Linux and Mac.

Without visualization, and with the edits described in Problem 1283, it passes all my regression tests. The compiler is VC++ express edition 2008 (just as I have been building earlier releases).

In order to build the Open Inventor driver using Coin3D, I need to pass these options to the VC++ compiler (cl): -DCOIN_NOT_DLL -DSOWIN_NOT_DLL

Unfortunately, neither CPPFLAGS nor CXXFLAGS does this when passed to make.

How can I pass additional flags to the compiler, while using the cmake system? During either cmake or make will do.

(For now I have edited the Coin3D source to define them, but that is not a viable long-term option.)

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

1 Note: Re: cmake additional compiler flags   (Ben Morgan - 22 Feb, 2012)
(_ None: Re: cmake additional compiler flags   (Tom Roberts - 24 Feb, 2012)
(_ 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: "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 ]