Message: Compiler check with CMake Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Compiler check with CMake 

Forum: Installation and Configuration
Date: 19 Nov, 2015
From: Genie Jhang <Genie Jhang>

Hi.

I have some problem with compiler.
Because I had to install GEANT4 in the old system with the compiler
supporting c++11 standard,
I compiled gcc 4.8.5 with my own hand and CMake 3.4.0 as well.

With this configuration, GEANT4 cmake script seems not to work correctly.
It doesn’t recognize gcc compiler I compiled.
It does know what compiler I’m providing due to PATH I set and
-DCMAKE_CXX_COMPILER and -DCMAKE_C_COMPILER options I passed.

The symptom is that the script is just read from top to bottom and the last
variable set method is applied.
So, even though I’m using gcc compiler all the variables are set as intel
compiler because that’s the last component in the script.

I think this is a bug of the GEANT4 cmake script because the other packages
are just installed without any problem.

What information should I provide to give you some clues to solve this?
My solution now is that just removing all the other variables but gcc ones.

Thank you for your help in advance.

Best regards,
Genie

 [ MIME part of type text/html without a name stripped ]

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

1 Question: Re: Compiler check with CMake   (Ben Morgan - 20 Nov, 2015)
(_ None: Re: Compiler check with CMake   (Ben Morgan - 23 Nov, 2015)
 Add Message Add Message
to: "Compiler check with CMake"

 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 ]