From cb4bade69f3d5c9e81e80822718956ac7ddfa07a Mon Sep 17 00:00:00 2001 From: Justin Schuh Date: Tue, 30 Nov 2021 01:22:50 -0800 Subject: [PATCH] Add missing setupapi.lib to slic3rutils tests (#7382) thanks --- tests/slic3rutils/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/slic3rutils/CMakeLists.txt b/tests/slic3rutils/CMakeLists.txt index ef4287b6c..0063de1d1 100644 --- a/tests/slic3rutils/CMakeLists.txt +++ b/tests/slic3rutils/CMakeLists.txt @@ -4,6 +4,9 @@ add_executable(${_TEST_NAME}_tests ) target_link_libraries(${_TEST_NAME}_tests test_common libslic3r_gui libslic3r) +if (MSVC) + target_link_libraries(${_TEST_NAME}_tests Setupapi.lib) +endif () set_property(TARGET ${_TEST_NAME}_tests PROPERTY FOLDER "tests") # catch_discover_tests(${_TEST_NAME}_tests TEST_PREFIX "${_TEST_NAME}: ")