Friday 29 July 2011

Cannot specify link libraries for target "alkpaymenttest" which is not built by this project.

I had the following output


puneet@puneet-Studio-1458:~/puneet/office/alkimia/payment/build$ cmake ..
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Found KDE 4.5 include dir: /usr/include
-- Found KDE 4.5 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
CMake Error at /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:808 (list):
  list sub-command GET requires at least three arguments.
Call Stack (most recent call first):
  backend/CMakeLists.txt:89 (kde4_add_unit_test)


CMake Error at backend/CMakeLists.txt:92 (target_link_libraries):
  Cannot specify link libraries for target "alkpaymenttest" which is not
  built by this project.

SOLUTION:

Well, this error is sometimes caused due to the non-ASCII characters (special chars) in the CMakeLists.txt

So I just wrote down the lines including alkpaymenttest again, which solved the problem.

No comments:

Post a Comment