Fix draco linking for Hunter/Normal
parent
b45723c384
commit
aa10b56bc2
|
@ -1157,8 +1157,15 @@ IF(ASSIMP_HUNTER_ENABLED)
|
||||||
zip::zip
|
zip::zip
|
||||||
pugixml
|
pugixml
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (ASSIMP_BUILD_DRACO)
|
||||||
|
target_link_libraries(assimp PUBLIC ${draco_LIBRARIES})
|
||||||
|
endif()
|
||||||
ELSE()
|
ELSE()
|
||||||
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES})
|
TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES})
|
||||||
|
if (ASSIMP_BUILD_DRACO)
|
||||||
|
target_link_libraries(assimp ${draco_LIBRARIES})
|
||||||
|
endif()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(ASSIMP_ANDROID_JNIIOSYSTEM)
|
if(ASSIMP_ANDROID_JNIIOSYSTEM)
|
||||||
|
@ -1173,10 +1180,6 @@ IF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER)
|
||||||
TARGET_LINK_LIBRARIES(assimp ${C4D_EXTRA_LIBRARIES})
|
TARGET_LINK_LIBRARIES(assimp ${C4D_EXTRA_LIBRARIES})
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
IF (ASSIMP_BUILD_DRACO)
|
|
||||||
target_link_libraries(assimp ${draco_LIBRARIES})
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
if( MSVC )
|
if( MSVC )
|
||||||
# in order to prevent DLL hell, each of the DLLs have to be suffixed with the major version and msvc prefix
|
# in order to prevent DLL hell, each of the DLLs have to be suffixed with the major version and msvc prefix
|
||||||
# CMake 3.12 added a variable for this
|
# CMake 3.12 added a variable for this
|
||||||
|
|
Loading…
Reference in New Issue