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)
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user