cmake: Use "MODULE" instead of "SHARED" for modules

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent b000f96170
commit d984853790
  1. 2
      cmake/LighttpdMacros.cmake
  2. 4
      src/CMakeLists.txt

@ -5,7 +5,7 @@ MACRO(ADD_AND_INSTALL_LIBRARY LIBNAME SRCFILES)
ADD_LIBRARY(${LIBNAME} STATIC ${SRCFILES})
TARGET_LINK_LIBRARIES(lighttpd ${LIBNAME})
ELSE(BUILD_STATIC)
ADD_LIBRARY(${LIBNAME} SHARED ${SRCFILES})
ADD_LIBRARY(${LIBNAME} MODULE ${SRCFILES})
SET(L_INSTALL_TARGETS ${L_INSTALL_TARGETS} ${LIBNAME})
ADD_TARGET_PROPERTIES(${LIBNAME} LINK_FLAGS ${COMMON_LDFLAGS})

@ -6,8 +6,6 @@ INCLUDE(CheckTypeSize)
INCLUDE(CheckLibraryExists)
INCLUDE(CMakeDetermineCCompiler)
INCLUDE(FindThreads)
INCLUDE(CPack)
#INCLUDE(UsePkgConfig)
INCLUDE(FindPkgConfig)
INCLUDE(LighttpdMacros)
@ -26,8 +24,6 @@ OPTION(BUILD_EXTRA_WARNINGS "extra warnings")
IF(BUILD_STATIC)
SET(LIGHTTPD_STATIC 1)
ELSE(BUILD_STATIC)
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
ENDIF(BUILD_STATIC)
CHECK_INCLUDE_FILES(sys/devpoll.h HAVE_SYS_DEVPOLL_H)

Loading…
Cancel
Save