diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 039a745070d..26e0a3f1379 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2468,7 +2468,7 @@ if(WITH_OPENMP) # since they're passed to the linker as well. add_definitions("${OpenMP_C_FLAGS}") - find_library_static(OpenMP_LIBRARIES gomp) + find_library_static(OpenMP_LIBRARIES gomp ${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES}) endif() else() set(WITH_OPENMP OFF) |