Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/CuraEngine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Spijker <spijker.jelle@gmail.com>2022-04-07 06:10:52 +0300
committerJelle Spijker <spijker.jelle@gmail.com>2022-04-07 06:10:52 +0300
commitf99429f7b3a0e597c3b392861454503c4f47e74a (patch)
treea5815b9d9e2c2fad4fd2e3f3a44bc403355c5d72
parent7bbef6fcfbaa64aaf5e31135a14272a08f138707 (diff)
Bump up Boost to minimum required version of 1.75
This allows CuraEngine to be compiled with Visual Studio https://github.com/boostorg/polygon/issues/40 Contributes to CURA-8640
-rw-r--r--CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e64feecb..832847da1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,12 +33,9 @@ endif()
find_package(Stb REQUIRED)
include_directories(${Stb_INCLUDE_DIRS})
-#arachne needs boost polygon/voronoi
-find_package(boost QUIET)
-if(NOT TARGET boost::boost)
- find_package(Boost REQUIRED)
-else()
- add_library(Boost::boost ALIAS boost::boost)
+find_package(Boost REQUIRED 1.75.0)
+if(NOT TARGET Boost::boost) # Workaround for different namespace in non Conan find_packages
+ add_library(boost::boost ALIAS Boost::boost)
endif()
option(USE_SYSTEM_LIBS "Use the system libraries if available" OFF)
@@ -326,7 +323,7 @@ if (ENABLE_ARCUS)
target_link_libraries(_CuraEngine Arcus)
endif ()
-target_link_libraries(_CuraEngine Boost::boost)
+target_link_libraries(_CuraEngine boost::boost)
set_target_properties(_CuraEngine PROPERTIES COMPILE_DEFINITIONS "VERSION=\"${CURA_ENGINE_VERSION}\"")
if(WIN32)