From 387b9778f31b037c5c95a73021057c4e03800e6f Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 8 Oct 2022 19:18:50 +0200 Subject: [PATCH] cmake: remove "-static-openmp" for apple (#773) Fix warning "clang: warning: argument unused during compilation: '-static-openmp' [-Wunused-command-line-argument]" --- CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8239c816e..f69936136 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -276,8 +276,6 @@ if(USE_OPENMP) # Reference: https://android.googlesource.com/platform/ndk/+/refs/heads/master/tests/device/openmp/CMakeLists.txt set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_OPTIONS -fopenmp) target_link_libraries(${PROJECT_NAME} PRIVATE -fopenmp -static-openmp) - elseif(APPLE) - target_link_libraries(${PROJECT_NAME} PRIVATE OpenMP::OpenMP_CXX -static-openmp) else() target_link_libraries(${PROJECT_NAME} PRIVATE OpenMP::OpenMP_CXX) endif()