Enhancement #618

Make configuration of USE_CPP_0X depending on GCC version?

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:RejectedStart date:10/10/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:NemoMath 0.2

Description

See #514
We can find out the gcc version of the system by

IF(CMAKE_COMPILER_IS_GNUCC)
    EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -dumpversion
                    OUTPUT_VARIABLE GCC_VERSION)
    STRING(REGEX MATCHALL "[0-9]+" GCC_VERSION_COMPONENTS ${GCC_VERSION})
    LIST(GET GCC_VERSION_COMPONENTS 0 GCC_MAJOR)
    LIST(GET GCC_VERSION_COMPONENTS 1 GCC_MINOR)
   MESSAGE(STATUS "Found gcc version: ${GCC_MAJOR}.${GCC_MINOR}")
ENDIF(CMAKE_COMPILER_IS_GNUCC)

We could set USE_CPP_0X for affected GCC versions automatically ...


Related issues

Related to NemoMath - Tasks #514: boost.thread doesn't work with gcc-4.5 in c++0x mode Resolved 08/19/2011

History

#1 Updated by M. Rolf over 12 years ago

  • Target version set to NemoMath 0.2

#2 Updated by Anonymous over 12 years ago

  • Status changed from New to Rejected

If c++0x activated, there are already compiler version checks to select individual features.
Globally activating/deactivating c++0x is not appropriate since this depends on an external bug (boost-thread).

Also available in: Atom PDF