iridescence
iridescence copied to clipboard
Assimp not linking on macOS
The cmakelists is finding assimp, but not linking correctly it as far as I can tell, at least for assimp 5.4.3 which I get from homebrew). Thus during linking
ld: library 'assimp' not found
c++: error: linker command failed with exit code 1 (use -v to see invocation)
To make it link, I applied this diff. I'm not sure if older assimp versions maybe do not support this.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d033515..e27d6ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,7 +95,7 @@ else()
endif()
if(${assimp_FOUND})
- list(APPEND EXTRA_LIBRARIES assimp)
+ list(APPEND EXTRA_LIBRARIES ${ASSIMP_LIBRARIES})
list(APPEND EXTRA_SOURCE src/glk/io/mesh_io.cpp)
endif()
Thanks, I'll check if it works on older versions. If not, I'll add some fallback.