[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 287462] New: cmake definition don't work for subdir cmakelists
From: Bernd Buschinski <b.buschinski () googlemail ! com>
Date: 2011-11-24 13:46:19
Message-ID: bug-287462-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=287462
Summary: cmake definition don't work for subdir cmakelists
Product: kdevelop
Version: git master
Platform: Gentoo Packages
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: Build tools: CMake
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: b.buschinski@googlemail.com
Version: git master (using KDE 4.7.3)
OS: Linux
CMakeLists.txt //add_definitions(-DHAVE_TEST)
src/CMakeLists.txt //set(source main.cpp)
code completition does not work in main.cpp under HAVE_TEST
but if you move add_definitions(-DHAVE_TEST) to src/CMakeLists.txt it works.
Reproducible: Always
Steps to Reproduce:
- create a cmake project, with a src subdir
- add to toplevel CMakeLists.txt
add_definitions(-DHAVE_TEST)
add_subdirectory(src)
- in src/CMakeLists.txt
just add the source
set(testDefines_SRCS main.cpp)
- add some code which needs #ifdef HAVE_TEST
Actual Results:
code completion does not work in #ifdef HAVE_TEST
Expected Results:
it should work
see testproject main.cpp:16
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic