diff --git a/3rdParty/assimp/CMakeLists.txt b/3rdParty/assimp/CMakeLists.txt index 2be13a3..bb42c64 100644 --- a/3rdParty/assimp/CMakeLists.txt +++ b/3rdParty/assimp/CMakeLists.txt @@ -1,8 +1,10 @@ include(FetchContent) unset(assimp_FOUND) -find_package(assimp QUIET) -message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}") +if (NOT IOS) + find_package(assimp QUIET) + message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}") +endif () if (assimp_FOUND OR ASSIMP_FOUND) message("Using system assimp") elseif (USE_ASSIMP) @@ -33,7 +35,7 @@ endif () function(LinkAssimp TARGET) - if (NOT assimp_BUILT) + if (NOT assimp_BUILT AND NOT IOS) find_package(assimp QUIET) message("assimp_FOUND: ${assimp_FOUND}; ASSIMP_FOUND: ${ASSIMP_FOUND}") if (assimp_FOUND OR ASSIMP_FOUND)