Fix ios build for assimp

This commit is contained in:
Georg Hagen
2024-10-08 11:00:51 +02:00
parent 81f76e9436
commit 20c8fa07a0

View File

@@ -1,8 +1,10 @@
include(FetchContent) include(FetchContent)
unset(assimp_FOUND) unset(assimp_FOUND)
if (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}")
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)