Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-12-03 13:34:41 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-12-03 13:34:41 +0300
commit27e7c78bae3903abf9deb7c21ca19b55ca659f9a (patch)
tree5e2e9c5d7e463a45c7bcd04ed8a4350aac68256e /CMakeLists.txt
parent2880480693ed44c95acdc421770fe2c85fbdbdba (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
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)