Skip to content
Snippets Groups Projects
Commit 8aefe4f2 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Fixing cmake preamble

parent 5544a17a
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ endif() ...@@ -33,7 +33,7 @@ endif()
# If compiler is GCC active the color diagnostic # If compiler is GCC active the color diagnostic
if(${CMAKE_CXX_COMPILER_ID} MATCHES ".*GNU.*") if(${CMAKE_CXX_COMPILER_ID} MATCHES ".*GNU.*")
set(CMAKE_CXX_FLAGS -march=native "${CMAKE_CXX_FLAGS} ") set(CMAKE_CXX_FLAGS "-march=native ${CMAKE_CXX_FLAGS} ")
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
OUTPUT_VARIABLE GCC_VERSION) OUTPUT_VARIABLE GCC_VERSION)
if (GCC_VERSION VERSION_GREATER 4.9 OR GCC_VERSION VERSION_EQUAL 4.9) if (GCC_VERSION VERSION_GREATER 4.9 OR GCC_VERSION VERSION_EQUAL 4.9)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment