Commit 48378bd9 authored by Rashad Kanavath's avatar Rashad Kanavath

SuperBuild: remove unused static libs generated in install tree

parent 57abc8df
......@@ -28,8 +28,12 @@ else()
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
-DGEOS_ENABLE_TESTS:BOOL=OFF
CMAKE_COMMAND ${SB_CMAKE_COMMAND}
)
CMAKE_COMMAND ${SB_CMAKE_COMMAND} )
ExternalProject_Add_Step(${proj} remove_static
COMMAND ${CMAKE_COMMAND} -E remove
${SB_INSTALL_PREFIX}/lib/libgeos.a
DEPENDEES install)
set(_SB_${proj}_INCLUDE_DIR ${SB_INSTALL_PREFIX}/include)
if(WIN32)
......
......@@ -49,8 +49,8 @@ else()
${JPEG_SB_BUILD_DIR}/configure
--prefix=${SB_INSTALL_PREFIX}
--enable-shared=yes
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
BUILD_COMMAND $(MAKE) bin_PROGRAMS=
INSTALL_COMMAND $(MAKE) install bin_PROGRAMS=
DEPENDS ${${proj}_DEPENDENCIES}
)
......@@ -60,7 +60,10 @@ else()
DEPENDEES patch update
DEPENDERS configure
)
ExternalProject_Add_Step(${proj} remove_static
COMMAND ${CMAKE_COMMAND} -E remove ${SB_INSTALL_PREFIX}/lib/libjpeg.a
DEPENDEES install)
endif()
set(_SB_${proj}_INCLUDE_DIR ${SB_INSTALL_PREFIX}/include)
......
......@@ -58,8 +58,16 @@ else()
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E chdir ${OPENSSL_SB_BUILD_DIR} ./config ${OPENSSL_BUILD_ARCH}
--prefix=${SB_INSTALL_PREFIX} shared zlib zlib-dynamic -I${SB_INSTALL_PREFIX}/include -L${SB_INSTALL_PREFIX}/lib
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
INSTALL_COMMAND $(MAKE) install)
ExternalProject_Add_Step(${proj} remove_static
COMMAND ${CMAKE_COMMAND} -E remove
${SB_INSTALL_PREFIX}/lib/libssl.a
${SB_INSTALL_PREFIX}/lib/libcrypto.a
${SB_INSTALL_PREFIX}/bin/openssl
${SB_INSTALL_PREFIX}/bin/c_rehash
DEPENDEES install)
endif()
set(_SB_${proj}_INCLUDE_DIR ${SB_INSTALL_PREFIX}/include)
......
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