Enhancement #618
Make configuration of USE_CPP_0X depending on GCC version?
Status: | Rejected | Start date: | 10/10/2011 | |
---|---|---|---|---|
Priority: | Normal | Due 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
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).