summaryrefslogtreecommitdiff
path: root/cmake/QtCreatorAPI.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-02-25 19:28:35 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2020-02-26 11:56:32 +0000
commit82b6de6db6fe2be3a2c178fb713309da84ca00b6 (patch)
treee8328d8f0ac320103b581228672bcb3f7b6dbd57 /cmake/QtCreatorAPI.cmake
parente7ca8fbee4ee32a667236500d1f27a392c83752f (diff)
downloadqt-creator-82b6de6db6fe2be3a2c178fb713309da84ca00b6.tar.gz
CMake Build: Add qtdiag to Dependencies install target
Change-Id: If1c56ff6e366ec4d5c4bb97e4a176cf9cf8dc4c5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'cmake/QtCreatorAPI.cmake')
-rw-r--r--cmake/QtCreatorAPI.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake
index bbfb0a214b..751f2d4f6f 100644
--- a/cmake/QtCreatorAPI.cmake
+++ b/cmake/QtCreatorAPI.cmake
@@ -1044,7 +1044,18 @@ function(add_qtc_executable name)
\"Prefix=\${qt_conf_binaries}\n\"
)
endif()
-
+ if (WIN32 OR APPLE)
+ file(RELATIVE_PATH qt_binaries
+ \"\${install_prefix}/\${base_dir}\"
+ \"\${install_prefix}/${IDE_BIN_PATH}\"
+ )
+ if (NOT qt_binaries)
+ set(qt_binaries .)
+ endif()
+ file(APPEND \"\${CMAKE_INSTALL_PREFIX}/\${location}/qt.conf\"
+ \"# Needed by QtCreator for qtdiag\n\"
+ \"Binaries=\${qt_binaries}\n\")
+ endif()
endfunction()
if(APPLE)
create_qt_conf(\"${_EXECUTABLE_PATH}\" \"${IDE_DATA_PATH}/..\")