[Kde-pim] branches/work/komo/kdepim/runtime/migration/tests
Casey Link
unnamedrambler at gmail.com
Fri Jun 25 16:34:20 BST 2010
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 at 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 at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list