1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00

Add patch to fix `make configure'.

The x11/kdelibs4 update from r436971 made the CMake code stricter, which was
making libkscreen fail in `make configure' where CMake used to just show a
warning:

CMake Error at tests/CMakeLists.txt:9 (add_test):
  add_test given test name "testscreenconfig" which already exists in this
  directory.
Call Stack (most recent call first):
  tests/CMakeLists.txt:13 (KSCREEN_TESTS)
This commit is contained in:
Raphael Kubo da Costa 2017-03-26 20:51:30 +00:00
parent 6f71baf210
commit 69a617f7b1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=436989

View File

@ -0,0 +1,19 @@
kde4_add_unit_test() alredy calls add_test().
Avoids errors such as:
CMake Error at tests/CMakeLists.txt:9 (add_test):
add_test given test name "testscreenconfig" which already exists in this
directory.
Call Stack (most recent call first):
tests/CMakeLists.txt:13 (KSCREEN_TESTS)
--- tests/CMakeLists.txt.orig 2017-03-26 22:46:03.553275000 +0200
+++ tests/CMakeLists.txt 2017-03-26 22:46:08.261918000 +0200
@@ -6,7 +6,7 @@
include_directories(${QT_INCLUDES} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${X11_Xrandr_INCLUDE_PATH})
kde4_add_unit_test(${_testname} ${_testname}.cpp ${_testname}.moc)
target_link_libraries(${_testname} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} kscreen)
- add_test(${_testname} ${CMAKE_CURRENT_BINARY_DIR}/${_testname})
+ # add_test(${_testname} ${CMAKE_CURRENT_BINARY_DIR}/${_testname})
endforeach(_testname)
endmacro(KSCREEN_TESTS)