Fix solid-lite static linking

If BUILD_SHARED_LIBS is part of standard system cmake args:

  cantata: error while loading shared libraries: libsolidlite.so:
  cannot open shared object file: No such file or directory
This commit is contained in:
Andreas Sturmlechner
2019-02-17 16:58:48 +01:00
committed by Andreas Sturmlechner
parent 67225dfd71
commit b85979284e

View File

@@ -202,7 +202,7 @@ if(APPLE)
set(solidlite_OPTIONAL_LIBS ${IOKIT_LIBRARY})
endif()
add_library(solidlite ${solidlite_LIB_SRCS})
add_library(solidlite STATIC ${solidlite_LIB_SRCS})
if ( UDEV_FOUND )
set(solidlite_OPTIONAL_LIBS ${solidlite_OPTIONAL_LIBS} ${UDEV_LIBS})