Skip to content
Snippets Groups Projects
Commit 06a9ef2c authored by Merlin Marek's avatar Merlin Marek
Browse files

added optional static linking on linux

parent 0389a383
No related branches found
No related tags found
No related merge requests found
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment