]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Speed up builds by just linking libarchive_test with the static
authorTim Kientzle <kientzle@gmail.com>
Mon, 22 Mar 2010 05:11:11 +0000 (01:11 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 22 Mar 2010 05:11:11 +0000 (01:11 -0400)
libarchive, instead of recompiling libarchive source.  The old
approach did allow us to use different flags for compiling libarchive
sources into libarchive_test, but speeding up the build is probably a
worthwhile trade-off.

SVN-Revision: 2051

libarchive/test/CMakeLists.txt

index 478f2ff386e5dfbdebb31942993f7515ef79ba85..a5aea96e641587f9ac7c59d7665b124275ee2c63 100644 (file)
@@ -4,12 +4,7 @@
 #
 ############################################
 IF(ENABLE_TEST)
-  FOREACH (_src ${libarchive_SOURCES})
-    LIST(APPEND parent_libarchive_SOURCES "../${_src}")
-  ENDFOREACH(_src)
-
   SET(libarchive_test_SOURCES
-    ${parent_libarchive_SOURCES}
     main.c
     read_open_memory.c
     test.h
@@ -132,7 +127,7 @@ IF(ENABLE_TEST)
   # Register target
   #
   ADD_EXECUTABLE(libarchive_test ${libarchive_test_SOURCES})
-  TARGET_LINK_LIBRARIES(libarchive_test ${ADDITIONAL_LIBS})
+  TARGET_LINK_LIBRARIES(libarchive_test archive_static ${ADDITIONAL_LIBS})
   SET_PROPERTY(TARGET libarchive_test PROPERTY COMPILE_DEFINITIONS
     LIBARCHIVE_STATIC LIST_H)