diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-02-25 17:02:38 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-02-25 17:09:10 +0300 |
commit | bcd369c3c12e48dd2be544fbd3ebed2ce8b4c1fb (patch) | |
tree | da0ae9bf35d0a564425642dce928405841c4fc42 /CMakeLists.txt | |
parent | ae581f9445a2bb9980a5aeb205d591b642562fa4 (diff) |
Fix macOS SSE support not detected correctly after recent changes
Due to moving the code the test binary was incorrectly compiled with OpenMP
flags. Move setting of the OpenMP flags to the appropriate place.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b8d68a60f0..24201ae6869 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1215,6 +1215,7 @@ if(WITH_OPENMP) if(NOT WITH_OPENMP_STATIC) string(APPEND CMAKE_C_FLAGS " ${OpenMP_C_FLAGS}") string(APPEND CMAKE_CXX_FLAGS " ${OpenMP_CXX_FLAGS}") + string(APPEND CMAKE_EXE_LINKER_FLAGS " ${OpenMP_LINKER_FLAGS}") else() # Typically avoid adding flags as defines but we can't # pass OpenMP flags to the linker for static builds, meaning |