[Bf-blender-cvs] [27e7c78] master: CMake: Use implicit compiler library paths to find OpenMP library
Sergey Sharybin
noreply at git.blender.org
Thu Dec 3 11:36:04 CET 2015
Commit: 27e7c78bae3903abf9deb7c21ca19b55ca659f9a
Author: Sergey Sharybin
Date: Thu Dec 3 15:34:41 2015 +0500
Branches: master
https://developer.blender.org/rB27e7c78bae3903abf9deb7c21ca19b55ca659f9a
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.
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 039a745..26e0a3f 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)
More information about the Bf-blender-cvs
mailing list