Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITAConvolution
Commits
8b301403
Commit
8b301403
authored
Jan 06, 2022
by
Pascal Palenda
Browse files
Fix issue with tbb and spaces in path
parent
6709676f
Changes
1
Hide whitespace changes
Inline
Side-by-side
external_libs/CMakeLists.txt
View file @
8b301403
...
...
@@ -48,6 +48,23 @@ if (tbb_ADDED)
PDB_OUTPUT_DIRECTORY_DEBUG
${
_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
)
endif
()
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment