diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b664bf7..80ded410 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ endif () message(STATUS "Qt version: ${Qt${MAJOR_QT_VERSION}_VERSION}") if (WIN32) - find_package(WinToast REQUIRED) + add_subdirectory(lib/WinToast EXCLUDE_FROM_ALL) endif () find_package(Sanitizers QUIET) diff --git a/cmake/FindWinToast.cmake b/cmake/FindWinToast.cmake deleted file mode 100644 index 3b767fb1..00000000 --- a/cmake/FindWinToast.cmake +++ /dev/null @@ -1,12 +0,0 @@ -if (EXISTS ${CMAKE_SOURCE_DIR}/lib/WinToast/src/wintoastlib.cpp) - set(WinToast_FOUND TRUE) - add_library(WinToast ${CMAKE_SOURCE_DIR}/lib/WinToast/src/wintoastlib.cpp) - target_include_directories(WinToast PUBLIC "${CMAKE_SOURCE_DIR}/lib/WinToast/src/") -else () - set(WinToast_FOUND FALSE) - message("WinToast submodule not found!") -endif () - - - - diff --git a/lib/WinToast b/lib/WinToast index 5e441fd0..821c4818 160000 --- a/lib/WinToast +++ b/lib/WinToast @@ -1 +1 @@ -Subproject commit 5e441fd03543b999edb663caf8df7be37c0d575c +Subproject commit 821c4818ade1aa4da56ac753285c159ce26fd597 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3165cd1f..ef7fb162 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -948,7 +948,7 @@ if (UNIX) endif () endif () -if (WinToast_FOUND) +if (WIN32) target_link_libraries(${LIBRARY_PROJECT} PUBLIC WinToast)