Fix ios build for assimp
This commit is contained in:
8
3rdParty/assimp/CMakeLists.txt
vendored
8
3rdParty/assimp/CMakeLists.txt
vendored
@@ -1,8 +1,10 @@
|
|||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
|
|
||||||
unset(assimp_FOUND)
|
unset(assimp_FOUND)
|
||||||
find_package(assimp QUIET)
|
if (NOT IOS)
|
||||||
message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}")
|
find_package(assimp QUIET)
|
||||||
|
message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}")
|
||||||
|
endif ()
|
||||||
if (assimp_FOUND OR ASSIMP_FOUND)
|
if (assimp_FOUND OR ASSIMP_FOUND)
|
||||||
message("Using system assimp")
|
message("Using system assimp")
|
||||||
elseif (USE_ASSIMP)
|
elseif (USE_ASSIMP)
|
||||||
@@ -33,7 +35,7 @@ endif ()
|
|||||||
|
|
||||||
|
|
||||||
function(LinkAssimp TARGET)
|
function(LinkAssimp TARGET)
|
||||||
if (NOT assimp_BUILT)
|
if (NOT assimp_BUILT AND NOT IOS)
|
||||||
find_package(assimp QUIET)
|
find_package(assimp QUIET)
|
||||||
message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}")
|
message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}")
|
||||||
if (assimp_FOUND OR ASSIMP_FOUND)
|
if (assimp_FOUND OR ASSIMP_FOUND)
|
||||||
|
|||||||
Reference in New Issue
Block a user