diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2017-03-26 20:51:30 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2017-03-26 20:51:30 +0000 |
commit | 69a617f7b1d8c15ff0c0bc99a164f05714eeb3b1 (patch) | |
tree | 923c53683767e67e1190ed13035631449eeb3ef7 /graphics | |
parent | 6f71baf210f880ca2f7aa1c75444e549b28742ec (diff) | |
download | ports-69a617f7b1d8c15ff0c0bc99a164f05714eeb3b1.tar.gz ports-69a617f7b1d8c15ff0c0bc99a164f05714eeb3b1.zip |
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)
Notes
Notes:
svn path=/head/; revision=436989
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libkscreen/files/patch-tests_CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/libkscreen/files/patch-tests_CMakeLists.txt b/graphics/libkscreen/files/patch-tests_CMakeLists.txt new file mode 100644 index 000000000000..a1629c7af526 --- /dev/null +++ b/graphics/libkscreen/files/patch-tests_CMakeLists.txt @@ -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) + |