mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix: dont run windeployqt with VCPKG (#4297)
This commit is contained in:
parent
5ad8ca791c
commit
a567cc5ae7
|
@ -637,6 +637,7 @@ if (BUILD_APP)
|
||||||
)
|
)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
if (NOT VCPKG_INSTALLED_DIR)
|
||||||
get_target_property(Qt_Core_Location Qt${MAJOR_QT_VERSION}::Core LOCATION)
|
get_target_property(Qt_Core_Location Qt${MAJOR_QT_VERSION}::Core LOCATION)
|
||||||
get_filename_component(QT_BIN_DIR ${Qt_Core_Location} DIRECTORY)
|
get_filename_component(QT_BIN_DIR ${Qt_Core_Location} DIRECTORY)
|
||||||
set(WINDEPLOYQT_COMMAND "${QT_BIN_DIR}/windeployqt.exe" $<TARGET_FILE:${EXECUTABLE_PROJECT}> --release --no-compiler-runtime --no-translations --no-opengl-sw)
|
set(WINDEPLOYQT_COMMAND "${QT_BIN_DIR}/windeployqt.exe" $<TARGET_FILE:${EXECUTABLE_PROJECT}> --release --no-compiler-runtime --no-translations --no-opengl-sw)
|
||||||
|
@ -646,6 +647,7 @@ if (BUILD_APP)
|
||||||
)
|
)
|
||||||
|
|
||||||
install(CODE "execute_process(COMMAND ${WINDEPLOYQT_COMMAND} --dir \${CMAKE_INSTALL_PREFIX})")
|
install(CODE "execute_process(COMMAND ${WINDEPLOYQT_COMMAND} --dir \${CMAKE_INSTALL_PREFIX})")
|
||||||
|
endif()
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
install(TARGETS ${EXECUTABLE_PROJECT}
|
install(TARGETS ${EXECUTABLE_PROJECT}
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION bin
|
||||||
|
|
Loading…
Reference in a new issue