[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 293750] <wrong-target> when creating cmake test
From: Julian Aloofi <julian () fedoraproject ! org>
Date: 2012-06-02 19:03:51
Message-ID: bug-293750-17878-HX5V3df74k () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=293750
--- Comment #2 from Julian Aloofi <julian@fedoraproject.org> ---
It looks like this happens when KDevelop is not happy with the file list passed
to add_executable.
I encountered this problem myself when I tried to add sources that were set in
a CMakeLists.txt in a subdirectory.
In the toplevel CMakeLists.txt I did:
add_subdirectory(${CMAKE_SOURCE_DIR}/src)
add_executable (foo ${FOO_SOURCES})
and in the CMakeLists.txt in ${CMAKE_SOURCE_DIR}/src I just did:
set(FOO_SOURCES
# some source files, e.g:
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
PARENT_SCOPE)
However, displaying the correct target works when setting FOO_SOURCES in the
toplevel CMakeLists.txt (and plain cmake will build the project just fine in
either case)
PS: I'm using this on Fedora 17, with KDevelop 4.3.1 and CMake 2.8.8
--
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic