Commit 8b301403 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Fix issue with tbb and spaces in path

parent 6709676f
...@@ -48,6 +48,23 @@ if (tbb_ADDED) ...@@ -48,6 +48,23 @@ if (tbb_ADDED)
PDB_OUTPUT_DIRECTORY_DEBUG ${_pdb_dir} PDB_OUTPUT_DIRECTORY_DEBUG ${_pdb_dir}
PDB_OUTPUT_DIRECTORY_RELEASE ${_pdb_dir} PDB_OUTPUT_DIRECTORY_RELEASE ${_pdb_dir}
) )
# tbb sets the linker flags directly via the properties instead of via target_link_options. When the source path
# 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}\"")
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}\"")
unset (_tmp)
unset (_pdb_dir) unset (_pdb_dir)
endif () endif ()
endif () endif ()
Supports Markdown
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