diff --git a/CMakeLists.txt b/CMakeLists.txt index b4ab3e3a..00d087df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -680,22 +680,24 @@ install(TARGETS isle ${install_extra_targets} LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ) if (ISLE_BUILD_CONFIG) - find_program(WINDEPLOYQT_EXECUTABLE windeployqt) - if(WINDEPLOYQT_EXECUTABLE) - install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\") - execute_process(COMMAND \"${WINDEPLOYQT_EXECUTABLE}\" - \"$\" - --dir QTLibs - --no-compiler-runtime - --no-opengl-sw - --no-system-d3d-compiler - --no-translations - --no-quick-import - )" - ) - install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}") - else() - message(STATUS "windeployqt not found: Qt binaries will not be installed") + if(WIN32) + find_program(WINDEPLOYQT_EXECUTABLE windeployqt) + if(WINDEPLOYQT_EXECUTABLE) + install(CODE "message(STATUS \"Running windeployqt with minimal dependencies\") + execute_process(COMMAND \"${WINDEPLOYQT_EXECUTABLE}\" + \"$\" + --dir QTLibs + --no-compiler-runtime + --no-opengl-sw + --no-system-d3d-compiler + --no-translations + --no-quick-import + )" + ) + install(DIRECTORY "Build/QTLibs/" DESTINATION "${CMAKE_INSTALL_BINDIR}") + else() + message(STATUS "windeployqt not found: Qt binaries will not be installed") + endif() endif() install(TARGETS isle-config RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"