[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] branches/work/komo/kdepim/runtime/migration/tests
From: Casey Link <unnamedrambler () gmail ! com>
Date: 2010-06-25 15:34:20
Message-ID: 20100625153420.C756DAC8DD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1142753 by link:
fix cmake. according to CMP0002 "all logical target names to be globally unique", but \
kde4_add_executable() and add_akonadi_isolated_test() both defined \
testnotesmigration_automoc at some point causing the policy to be violated.
To avoid this I simply changed the first target's name slightly. This is a hackish \
fix probably, but it was preventing me from doing work. CMake gurus are welcome to \
investigate further. Back to work.
cmake output:
-- Found Akonadi: /home/kde-devel/kde/kde_dir/lib64/cmake/Akonadi/AkonadiConfig.cmake
-- Strigi API needs 'signed char'
CMake Error at /home/kde-devel/kde/kde_dir/lib64/automoc4/Automoc4Config.cmake:202 \
(add_custom_target): add_custom_target cannot create target \
"testnotesmigration_automoc" because another target with the same name already \
exists. The existing target is a custom target created in source directory
"/home/kde-devel/kde/src/komo/kdepim/runtime/migration/tests". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/home/kde-devel/kde/kde_dir/lib64/automoc4/Automoc4Config.cmake:264 \
(_add_automoc4_target) \
/home/kde-devel/kde/kde_dir/share/apps/cmake/modules/KDE4Macros.cmake:945 \
(_automoc4_kde4_pre_target_handling) \
runtime/agents/maildispatcher/tests/CMakeLists.txt:8 (kde4_add_executable) \
runtime/migration/tests/CMakeLists.txt:67 (add_akonadi_isolated_test)
CCMAIL: kde-pim@kde.org
M +5 -5 CMakeLists.txt
--- branches/work/komo/kdepim/runtime/migration/tests/CMakeLists.txt #1142752:1142753
@@ -28,8 +28,8 @@
org.kde.Akonadi.Maildir.Settings MaildirSettings )
-kde4_add_executable(testnotesmigration TEST ${_srcList})
-target_link_libraries(testnotesmigration
+kde4_add_executable(testnotesmigration1 TEST ${_srcList})
+target_link_libraries(testnotesmigration1
${QT_QTTEST_LIBRARY}
${QT_QTGUI_LIBRARY}
${KDEPIMLIBS_AKONADI_LIBS}
@@ -48,10 +48,10 @@
# based on kde4_add_unit_test
if (WIN32)
- get_target_property( _loc testnotesmigration LOCATION )
+ get_target_property( _loc testnotesmigration1 LOCATION )
set(_executable ${_loc}.bat)
else (WIN32)
- set(_executable ${EXECUTABLE_OUTPUT_PATH}/testnotesmigration)
+ set(_executable ${EXECUTABLE_OUTPUT_PATH}/testnotesmigration1)
endif (WIN32)
if (UNIX)
set(_executable ${_executable}.shell)
@@ -59,7 +59,7 @@
find_program(_testrunner akonaditest)
-add_test( testnotesmigration ${_testrunner} -c \
${CMAKE_CURRENT_SOURCE_DIR}/unittestenv/config.xml ${_executable} ) +add_test( \
testnotesmigration1 ${_testrunner} -c \
${CMAKE_CURRENT_SOURCE_DIR}/unittestenv/config.xml ${_executable} )
_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic