diff --git a/qmlexport/CMakeLists.txt b/qmlexport/CMakeLists.txt index 244692ff..4f098f2e 100644 --- a/qmlexport/CMakeLists.txt +++ b/qmlexport/CMakeLists.txt @@ -54,6 +54,8 @@ install(EXPORT ${PACKAGE_NAME}Targets DESTINATION ${PACKAGE_LOCATION}) -install(FILES $ - DESTINATION - ${QSK_INSTALL_LIBS} OPTIONAL) \ No newline at end of file +if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES $ + DESTINATION + ${QSK_INSTALL_LIBS} OPTIONAL) +endif() \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 66d31af8..be10b13f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -562,6 +562,8 @@ install(EXPORT ${PACKAGE_NAME}Targets DESTINATION ${PACKAGE_LOCATION}) -install(FILES $ - DESTINATION - ${QSK_INSTALL_LIBS} OPTIONAL) \ No newline at end of file +if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES $ + DESTINATION + ${QSK_INSTALL_LIBS} OPTIONAL) +endif() \ No newline at end of file