From da066d1eddd1f0f414880e90a0627e9cb17c9a25 Mon Sep 17 00:00:00 2001 From: Rick Vogel Date: Thu, 11 Jan 2024 18:05:45 +0100 Subject: [PATCH] fix build break for non msvc compiler --- qmlexport/CMakeLists.txt | 8 +++++--- src/CMakeLists.txt | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) 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