diff --git a/CMakeStuff/toolchains/unix-toolchain.cmake b/CMakeStuff/toolchains/unix-toolchain.cmake
index 02dfc5b6f7684d2c2a5b74fa913bcfac873e4f62..cddabda6576f12a4e1aac86aed866b1d4b131899 100644
--- a/CMakeStuff/toolchains/unix-toolchain.cmake
+++ b/CMakeStuff/toolchains/unix-toolchain.cmake
@@ -31,3 +31,5 @@ find_package(Zstd REQUIRED)
 
 set(Pwiz_DIR ${CMAKE_MODULE_PATH})
 find_package(Pwiz REQUIRED)
+
+MESSAGE(STATUS "Found Pwiz: ${Pwiz_LIBRARY}")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 63a2805ae76e062f305a1a1d231aea6cb1d403ce..cf1c228d615a15f365283e3ccb8c2cb098f7b362 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -222,7 +222,6 @@ message("XTPCPP_SRCS:  ${XTPCPP_SRCS}")
 add_executable(xtpcpp main.cpp ${CPP_FILES} ${XTPCPP_SRCS} ${GUI_UI_HDRS} ${xtpcpp_RCC_SRCS})
 
 target_include_directories(xtpcpp PUBLIC
-    ${Pwiz_INCLUDE_DIR}
     ${QCustomPlot_INCLUDES}
     ${QUAZIP_INCLUDE_DIR}
 )
@@ -246,7 +245,7 @@ if(MINGW)
         OdsStream::Core 
         PappsoMSpp::Core
         PappsoMSpp::Widget
-        ${Pwiz_LIBRARY}
+        Pwiz::Pwiz
         ${QCustomPlot_LIBRARIES}
         ${ZLIB_LIBRARIES}
         Qt5::Gui
@@ -283,6 +282,7 @@ else(MINGW)
         ZLIB::ZLIB
         Alglib::Alglib
         Zstd::Zstd
+        Pwiz::Pwiz
     )
 endif(MINGW)