[Ctk-developers] qttesting cmake error
Zovastra Attah
Zovastra.Attah at creatis.insa-lyon.fr
Wed Jul 17 08:41:36 UTC 2013
Hello ,
I am struggling with a problem,
I fork the CTK qttesting repository and I made some change .
In the configuration step, I put CTK_APP_ctkQtTesting on,
And in, CTK/CmakeExternal/QtTesting.cmake, I make some changes
if(CTK_SUPERBUILD)
if(NOT DEFINED QtTesting_DIR)
#set(revision_tag 7dbef1003157941e7315220f53cf4e17d78b5e28)
if(${proj}_REVISION_TAG)
set(revision_tag ${${proj}_REVISION_TAG})
endif()
set(location_args )
if(${proj}_URL)
set(location_args URL ${${proj}_URL})
elseif(${proj}_GIT_REPOSITORY)
set(location_args GIT_REPOSITORY ${${proj}_GIT_REPOSITORY}
# GIT_TAG ${revision_tag}
)
else()
set(location_args GIT_REPOSITORY
"${git_protocol}://github.com/zoat2/QtTesting.git"
#GIT_TAG ${revision_tag}
)
endif()
# Set CMake OSX variable to pass down the external project
And the error is :
[ 78%] Performing configure step for 'CTK-Configure'
-- Generated: /test-CTK/CTK-superbuild/CTK-build/DGraphInput-alldep.txt
-- Generated:
/test-CTK/CTK-superbuild/CTK-build/DGraphInput-alldep-withext.txt
-- Generated: /test-CTK/CTK-superbuild/CTK-build/DGraphInput.txt
-- Generated: /test-CTK/CTK-superbuild/CTK-build/Project.xml
-- CTKCore: BFD support disabled
CMake Error at
/test-CTK/CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16
(ADD_LIBRARY):
add_library cannot create imported target "QtTesting" because another
target with the same name already exists.
Call Stack (most recent call first):
/home/administrateur/Bureau/CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9
(include)
Libs/Widgets/CMakeLists.txt:13 (find_package)
CMake Error at /CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16
(ADD_LIBRARY):
add_library cannot create imported target "QtTesting" because another
target with the same name already exists.
Call Stack (most recent call first):
/CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9 (include)
Libs/Visualization/VTK/Widgets/CMakeLists.txt:13 (find_package)
/CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16 (ADD_LIBRARY):
add_library cannot create imported target "QtTesting" because another
target with the same name already exists.
Call Stack (most recent call first):
/CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9 (include)
Libs/QtTesting/CMakeLists.txt:6 (find_package)
/CTK-superbuild/QtTesting-build/QtTestingExports.cmake:16 (ADD_LIBRARY):
add_library cannot create imported target "QtTesting" because another
target with the same name already exists.
Call Stack (most recent call first):
/CTK-superbuild/QtTesting-build/QtTestingConfig.cmake:9 (include)
Applications/ctkQtTesting/CMakeLists.txt:6 (find_package)
-- Configuring incomplete, errors occurred!
make[2]: ***
[CTK-Configure-prefix/src/CTK-Configure-stamp/CTK-Configure-configure]
Erreur 1
make[1]: *** [CMakeFiles/CTK-Configure.dir/all] Erreur 2
make: *** [all] Erreur 2
It trying to call ADD_LIBRARY for target that already exist.
Any help would be appreciated
zovastra
More information about the Ctk-developers
mailing list