Fix issues with finding new deps on win
This commit is contained in:
parent
7ed0d6b886
commit
ca67d880ec
3 changed files with 5 additions and 2 deletions
|
@ -389,10 +389,13 @@ find_package(CURL REQUIRED)
|
||||||
add_library(libcurl INTERFACE)
|
add_library(libcurl INTERFACE)
|
||||||
target_link_libraries(libcurl INTERFACE CURL::libcurl)
|
target_link_libraries(libcurl INTERFACE CURL::libcurl)
|
||||||
|
|
||||||
|
# Fixing curl's cmake config script bugs
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
# Required by libcurl
|
# Required by libcurl
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
target_link_libraries(libcurl INTERFACE ZLIB::ZLIB)
|
target_link_libraries(libcurl INTERFACE ZLIB::ZLIB)
|
||||||
|
else()
|
||||||
|
target_link_libraries(libcurl INTERFACE crypt32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (SLIC3R_STATIC)
|
if (SLIC3R_STATIC)
|
||||||
|
|
|
@ -347,7 +347,7 @@ macro(just_fail msg)
|
||||||
return()
|
return()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
find_package(IlmBase QUIET COMPONENTS Half)
|
find_package(IlmBase QUIET)
|
||||||
if(NOT IlmBase_FOUND)
|
if(NOT IlmBase_FOUND)
|
||||||
pkg_check_modules(IlmBase QUIET IlmBase)
|
pkg_check_modules(IlmBase QUIET IlmBase)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
project(libslic3r)
|
|
||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
project(libslic3r)
|
||||||
|
|
||||||
include(PrecompiledHeader)
|
include(PrecompiledHeader)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue