Skip to content

Commit

Permalink
Latest CMake not needed if GNU GCC is used on Mac (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 authored Dec 26, 2019
1 parent 650d9f6 commit 61bb900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ endif()

# OpenMP
if(USE_OPENMP)
if(APPLE)
if(APPLE AND (NOT CMAKE_COMPILER_IS_GNUCC))
# Require CMake 3.16+ for Mac to ensure that OpenMP can be located
# (Exception: it's okay if Homebrew GCC is used)
cmake_minimum_required(VERSION 3.16)
endif()

Expand Down

0 comments on commit 61bb900

Please sign in to comment.