Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
merging master and develop after conditionning switch to custom gcc compiler on linux
  • Loading branch information
bbercovici committed Apr 27, 2018
2 parents 8cc65b5 + a52bb7e commit e863ce6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Example/cmake/FindOmpGcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ if(APPLE)
endif()

else()
# Running on Linux. Will switch back to compiler in /usr/local/bin
message("Switching to /usr/local/gcc ")
set(CMAKE_C_COMPILER "/usr/local/bin/gcc" CACHE STRING "C Compiler" FORCE)
set(CMAKE_CXX_COMPILER "/usr/local/bin/g++" CACHE STRING "C++ Compiler" FORCE)
# Running on Linux. May need to check for another compiler. If not found,
# will use default
if(EXISTS /usr/local/gcc)
message("Switching to /usr/local/gcc ")
set(CMAKE_C_COMPILER "/usr/local/bin/gcc" CACHE STRING "C Compiler" FORCE)
set(CMAKE_CXX_COMPILER "/usr/local/bin/g++" CACHE STRING "C++ Compiler" FORCE)
endif()
endif()

0 comments on commit e863ce6

Please sign in to comment.