diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-20 06:50:19 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-20 06:50:19 +0100 |
commit | 0a9ec483f78de78b92f52d8f3a1b6dc1dceb03fd (patch) | |
tree | d9ba37abcf2c3a115d9d7879883020a2d353d6cb /macosx | |
parent | 7caff8660647f77deba9e2ff3eda6127996732bd (diff) |
cmake/osx: escape strings passed to install(CODE ...)opentrack-2.3.1.5
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/macosx/CMakeLists.txt b/macosx/CMakeLists.txt index 214ea676..e4bdf59a 100644 --- a/macosx/CMakeLists.txt +++ b/macosx/CMakeLists.txt @@ -1,9 +1,13 @@ if(APPLE) + opentrack_escape_string(srcdir "${CMAKE_SOURCE_DIR}") + opentrack_escape_string(bindir "${CMAKE_BINARY_DIR}") + opentrack_escape_string(instdir "${CMAKE_INSTALL_PREFIX}") + opentrack_escape_string(commit "${OPENTRACK_COMMIT}") install(CODE " - execute_process(COMMAND /bin/sh \"${CMAKE_SOURCE_DIR}/macosx/make-app-bundle.sh\" - \"${CMAKE_SOURCE_DIR}/macosx\" - \"${CMAKE_INSTALL_PREFIX}\" - \"${CMAKE_BINARY_DIR}\" - \"${OPENTRACK_COMMIT}\") + execute_process(COMMAND /bin/sh \"${srcdir}/macosx/make-app-bundle.sh\" + \"${srcdir}/macosx\" + \"${instdir}\" + \"${bindir}\" + \"${commit}\") ") endif() |