--- CuraEngine-3.5.1/CMakeLists.txt~ 2018-11-04 14:38:14.000000000 +0100 +++ CuraEngine-3.5.1/CMakeLists.txt 2018-11-04 14:48:14.120992489 +0100 @@ -15,10 +15,7 @@ add_definitions(-DARCUS) endif () -#For reading image files. -find_package(Stb REQUIRED) include_directories(${Stb_INCLUDE_DIRS}) - option(USE_SYSTEM_LIBS "Use the system libraries if available" OFF) if(USE_SYSTEM_LIBS) find_package(RapidJSON CONFIG REQUIRED) @@ -193,9 +189,6 @@ # Compiling CuraEngine itself. add_library(_CuraEngine STATIC ${engine_SRCS} ${engine_PB_SRCS}) #First compile all of CuraEngine as library, allowing this to be re-used for tests. -if (CuraEngine_Download_Stb) - add_dependencies(_CuraEngine stb) -endif() if(USE_SYSTEM_LIBS) target_link_libraries(_CuraEngine ${Polyclipping_LIBRARIES}) else()