cmake: don't install libsuperderpy library when it's being built as a static lib

This commit is contained in:
Sebastian Krzyszkowiak 2019-04-30 00:23:37 +02:00
parent 264ef2b86d
commit 29f9484a6b
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -53,4 +53,6 @@ if (ANDROID)
target_link_libraries("libsuperderpy" log)
endif (ANDROID)
install(TARGETS "libsuperderpy" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
if (NOT LIBSUPERDERPY_STATIC)
install(TARGETS "libsuperderpy" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
endif (NOT LIBSUPERDERPY_STATIC)