diff --git a/CMakeLists.txt b/CMakeLists.txt index a703a7d0ab..5580c29ac2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()