Menu

#29 0.9.5+ Fails to build with cmake 3.12

SVN TRUNK
closed
nobody
Patch (10)
2018-08-30
2018-08-27
No
cd /build/libpodofo-0.9.6+dfsg/obj-x86_64-linux-gnu/test/TokenizerTest && /usr/bin/cmake -E copy_directory /build/libpodofo-0.9.6+dfsg/test/TokenizerTest/objects /build/libpodofo-0.9.6+dfsg/obj-x86_64-linux-gnu/test/TokenizerTest/objects
Error copying directory from "/build/libpodofo-0.9.6+dfsg/test/TokenizerTest/objects" to "/build/libpodofo-0.9.6+dfsg/obj-x86_64-linux-gnu/test/TokenizerTest/objects".
make[3]: *** [test/TokenizerTest/CMakeFiles/TokenizerTest.dir/build.make:106: test/TokenizerTest/TokenizerTest] Error 1
make[3]: *** Deleting file 'test/TokenizerTest/TokenizerTest'
make[3]: Leaving directory '/build/libpodofo-0.9.6+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:672: test/TokenizerTest/CMakeFiles/TokenizerTest.dir/all] Error 2

Patch:

Description: Before CMake 3.12, trying to copy a non-existing dir didn't fail
Author: Juhani Numminen <juhaninumminen0@gmail.com>
Bug-Debian: https://bugs.debian.org/906781
Last-Update: 2018-08-27

--- a/test/TokenizerTest/CMakeLists.txt
+++ b/test/TokenizerTest/CMakeLists.txt
@@ -2,10 +2,3 @@
 TARGET_LINK_LIBRARIES(TokenizerTest ${PODOFO_LIB} ${PODOFO_LIB_DEPENDS})
 SET_TARGET_PROPERTIES(TokenizerTest PROPERTIES COMPILE_FLAGS "${PODOFO_CFLAGS}")
 ADD_DEPENDENCIES(TokenizerTest ${PODOFO_DEPEND_TARGET})
-
-# Copy the test samples over to the build tree
-ADD_CUSTOM_COMMAND(

-    TARGET TokenizerTest
-    POST_BUILD
-    COMMAND "${CMAKE_COMMAND}" -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/objects" "${CMAKE_CURRENT_BINARY_DIR}/objects"
-    )

Discussion

  • Matthew Brincke

    Matthew Brincke - 2018-08-28

    @admin: This is a duplicate of issue #24, please close this as such.

     
  • Mattia Rizzolo

    Mattia Rizzolo - 2018-08-28

    guess also I should learn to search before filing new bugs...
    sorry for the extra noise!

     
  • Dominik Seichter

    • status: open --> closed
     
  • Dominik Seichter

    Closed as requested

     
MongoDB Logo MongoDB