BUILD(cmake): Fix quoting for compile defs

It seems that the quotes added in a target_add_compile_definitions call
are taken literal and will be part of the actual macro definition.

What we actually wanted was that paths with spaces are properly covered
which can be achieved by placing the starting quote a bit differently.
This commit is contained in:
Robert Adam 2020-10-28 18:38:29 +01:00
parent 0dd5a054a5
commit 8fe9be82ab

View File

@ -291,8 +291,8 @@ endif()
target_compile_definitions(mumble
PRIVATE
MUMBLE_LIBRARY_PATH="${MUMBLE_INSTALL_LIBDIR}"
MUMBLE_PLUGIN_PATH="${MUMBLE_INSTALL_PLUGINDIR}"
"MUMBLE_LIBRARY_PATH=${MUMBLE_INSTALL_LIBDIR}"
"MUMBLE_PLUGIN_PATH=${MUMBLE_INSTALL_PLUGINDIR}"
)
set_target_properties(mumble