Commit 06a9ef2c authored by Merlin Marek's avatar Merlin Marek

added optional static linking on linux

parent 0389a383
......@@ -12,10 +12,9 @@ file(GLOB_RECURSE HEADER_FILES "*.hh" "*.h" "*.hpp" "*.inl")
add_subdirectory(contrib/zlib)
add_subdirectory(contrib/irrXML)
set(ASSIMP_LINK_TYPE SHARED CACHE String "link type for assimp")
if(MSVC)
set(ASSIMP_LINK_TYPE STATIC)
else()
set(ASSIMP_LINK_TYPE SHARED)
set(ASSIMP_LINK_TYPE STATIC CACHE String "" FORCE)
endif()
add_library(assimp ${ASSIMP_LINK_TYPE} ${SOURCE_FILES} ${HEADER_FILES})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment