Unverified Commit 047c4fd2 authored by Dmitry Mottl's avatar Dmitry Mottl Committed by GitHub
Browse files

[cmake] fixes static build for macos with OpenMP enabled (fixes #6601) (#6600)


Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
parent 5e4ab24b
...@@ -752,7 +752,7 @@ endif() ...@@ -752,7 +752,7 @@ endif()
# #
# This reduces the risk of runtime issues resulting from multiple {libgomp,libiomp,libomp}.dylib being loaded. # This reduces the risk of runtime issues resulting from multiple {libgomp,libiomp,libomp}.dylib being loaded.
# #
if(APPLE AND USE_OPENMP) if(APPLE AND USE_OPENMP AND NOT BUILD_STATIC_LIB)
# store path to {libgomp,libiomp,libomp}.dylib found at build time in a variable # store path to {libgomp,libiomp,libomp}.dylib found at build time in a variable
get_target_property( get_target_property(
OpenMP_LIBRARY_LOCATION OpenMP_LIBRARY_LOCATION
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment