[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 269879] New: Projects and subdirectories guarded by IF()
From: Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date: 2011-04-01 14:02:12
Message-ID: bug-269879-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=269879
Summary: Projects and subdirectories guarded by IF() depending
on CMake options are not changed when option changes
Product: kdevelop
Version: 4.2.0
Platform: openSUSE RPMs
OS/Version: Linux
Status: NEW
Severity: normal
Priority: NOR
Component: Build tools: CMake
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: kde@opensource.sf-tec.de
Version: 4.2.0 (using KDE 4.6.1)
OS: Linux
Use this CMakeLists.txt:
PROJECT(TestOption)
OPTION(WITH_OPTIONAL "build the optional target" OFF)
IF (WITH_OPTIONAL)
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/opt.c "int main(void) { return 0;
}")
ADD_EXECUTABLE(optional_target ${CMAKE_CURRENT_BINARY_DIR}/opt.c)
ENDIF()
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/def.c "int main(void) { return 0; }")
ADD_EXECUTABLE(default_target ${CMAKE_CURRENT_BINARY_DIR}/def.c)
When the project is imported only one project is shown. Now go to the project
configuration and enable the option. When you build you see that the option is
set and the second project is build, too. But KDevelop still shows only one
project.
The same happens when you set the default of the option to true: the two
projects are always shown, even if the option is deactivated.
Reproducible: Always
--
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