File r1942-Fix-build-with-cmake-ge-3.12.patch of Package podofo.34527

------------------------------------------------------------------------
r1942 | mc-zyx | 2018-09-30 18:16:47 +0200 (dim., 30 sept. 2018) | 4 lines

Patch by heirecka: Fix build with cmake >= 3.12

Closes https://sourceforge.net/p/podofo/tickets/24/


Index: test/TokenizerTest/CMakeLists.txt
===================================================================
--- test/TokenizerTest/CMakeLists.txt   (revision 1941)
+++ test/TokenizerTest/CMakeLists.txt   (revision 1942)
@@ -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"
-    )

------------------------------------------------------------------------
openSUSE Build Service is sponsored by