From abf279fc44f877f79085c707a6c93228aeea7a0d Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 20 May 2020 16:28:46 +0200 Subject: [PATCH] Fixed compilation with Shiny profiler. --- src/clipper/CMakeLists.txt | 4 ++++ src/libslic3r/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/clipper/CMakeLists.txt b/src/clipper/CMakeLists.txt index 412ab53c7d..8a4e928526 100644 --- a/src/clipper/CMakeLists.txt +++ b/src/clipper/CMakeLists.txt @@ -7,3 +7,7 @@ add_library(clipper STATIC clipper_z.cpp clipper_z.hpp ) + +if(SLIC3R_PROFILE) + target_link_libraries(clipper Shiny) +endif() diff --git a/src/libslic3r/CMakeLists.txt b/src/libslic3r/CMakeLists.txt index 12e61d7f3c..26f2190e53 100644 --- a/src/libslic3r/CMakeLists.txt +++ b/src/libslic3r/CMakeLists.txt @@ -304,7 +304,7 @@ if(WIN32) endif() if(SLIC3R_PROFILE) - target_link_libraries(slic3r Shiny) + target_link_libraries(libslic3r Shiny) endif() if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)