macOS retina scaling fixes, M1 Vulkan vsync workaround, CMakeLists OpenMP path fix for Apple
This commit is contained in:
parent
279c95422d
commit
8bc8d14cf2
10 changed files with 33 additions and 21 deletions
|
|
@ -12,21 +12,21 @@ function(buildExample EXAMPLE_NAME)
|
|||
SET(MAIN_HEADER ${EXAMPLE_FOLDER}/${EXAMPLE_NAME}.h)
|
||||
ENDIF()
|
||||
if(APPLE)
|
||||
# SRS - Use MacPorts paths as default since they are the same on x86 and Apple Silicon, can override on cmake command line
|
||||
if(NOT OpenMP_omp_LIBRARY)
|
||||
# SRS - Use MacPorts paths as default since the same on x86 and Apple Silicon, can override for homebrew on cmake command line
|
||||
if(NOT OpenMP_omp_LIBRARY AND EXISTS /opt/local/lib/libomp/libomp.dylib)
|
||||
set(OpenMP_omp_LIBRARY /opt/local/lib/libomp/libomp.dylib)
|
||||
endif()
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang\$")
|
||||
set(OpenMP_C_FLAGS "-Xclang -fopenmp")
|
||||
set(OpenMP_C_LIB_NAMES "omp")
|
||||
if(NOT OpenMP_C_INCLUDE_DIR)
|
||||
if(NOT OpenMP_C_INCLUDE_DIR AND EXISTS /opt/local/include/libomp)
|
||||
set(OpenMP_C_INCLUDE_DIR /opt/local/include/libomp)
|
||||
endif()
|
||||
endif()
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang\$")
|
||||
set(OpenMP_CXX_FLAGS "-Xclang -fopenmp")
|
||||
set(OpenMP_CXX_LIB_NAMES "omp")
|
||||
if(NOT OpenMP_CXX_INCLUDE_DIR)
|
||||
if(NOT OpenMP_CXX_INCLUDE_DIR AND EXISTS /opt/local/include/libomp)
|
||||
set(OpenMP_CXX_INCLUDE_DIR /opt/local/include/libomp)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue