[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 281565] New: Can not compile single file from subdirectory
From:       Sergey Vidyuk <sir.vestnik () gmail ! com>
Date:       2011-09-07 16:54:40
Message-ID: bug-281565-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=281565

           Summary: Can not compile single file from subdirectory
           Product: kdevelop
           Version: git master
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Build tools: CMake
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: sir.vestnik@gmail.com


Created an attachment (id=63487)
 --> (http://bugs.kde.org/attachment.cgi?id=63487)
Example project

Version:           git master (using KDE 4.7.0) 
OS:                Linux

Attempt to compile single file fails if file is located in a subdirectory added
to a main project using cmake add_subdirectory() function. Make is executed in
wrong folder.

Reproducible: Always

Steps to Reproduce:
1 Open a project attached
2 Modify timestamp on foo/bar2.cpp
3 Remove everything from "Project selection"
4 Add foo/bar2.cpp to Project selection
5 Pres F8 or "Build selection" button

Actual Results:  
Got the following output in build toolview:
/home/vestnik/Development/test/kdev4bug/build> make bar2.o
make: *** No rule to make target `bar2.o'.  Stop.
*** Failed ***

Expected Results:  
"make bar.o" command should be executed from the "foo" subdirectory of the
build tree instead of root of the build tree and should compile bar2.cpp
successfully.

-- 
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