CMake: Use implicit compiler library paths to find OpenMP library

Was lost since the original patch sent to Cambo, didn't notice the failure before
because had it applied locally.

Without this flag certain configuration wouldn't fins libgomp.
This commit is contained in:
Sergey Sharybin
2015-12-03 15:34:41 +05:00
parent 2880480693
commit 27e7c78bae

View File

@@ -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)