Commit 0db75d81 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Fix and improve link options for tbb

parent 8e67f845
......@@ -53,16 +53,12 @@ if (tbb_ADDED)
# contains spaces, the linker cannot handle this. This we need to add quotes around these manually here so that
# this error does not occur.
get_target_property (_tmp tbb LINK_FLAGS)
set_target_properties (tbb PROPERTIES LINK_FLAGS "\"${_tmp}\"")
get_target_property (_tmp tbb LINK_DEPENDS)
set_target_properties (tbb PROPERTIES LINK_DEPENDS "\"${_tmp}\"")
set_target_properties (tbb PROPERTIES LINK_FLAGS "")
target_link_options (tbb PRIVATE ${_tmp})
get_target_property (_tmp tbbmalloc LINK_FLAGS)
set_target_properties (tbbmalloc PROPERTIES LINK_FLAGS "\"${_tmp}\"")
get_target_property (_tmp tbbmalloc LINK_DEPENDS)
set_target_properties (tbbmalloc PROPERTIES LINK_DEPENDS "\"${_tmp}\"")
set_target_properties (tbbmalloc PROPERTIES LINK_FLAGS "")
target_link_options (tbbmalloc PRIVATE ${_tmp})
unset (_tmp)
unset (_pdb_dir)
......
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