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

List:       kdevelop-bugs
Subject:    [Bug 287805] New: EXECUTE_PROCESS() in a CMakeLists.txt command
From:       Kishore <kitts.mailinglists () gmail ! com>
Date:       2011-11-29 5:52:00
Message-ID: bug-287805-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: EXECUTE_PROCESS() in a CMakeLists.txt command pollutes
                    kdevelop's working directory
           Product: kdevelop
           Version: 4.2.3
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Build tools: CMake
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: kitts.mailinglists@gmail.com


Created an attachment (id=66171)
 --> (http://bugs.kde.org/attachment.cgi?id=66171)
Contains a CMakeLists.txt and kdevelop project file that help reproduce the
problem

Version:           4.2.3 (using KDE 4.7.3) 
OS:                Linux

There is bad behavior in kdevelop with a CMakeList file that contains the
EXECUTE_PROCESS() command like below.

EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-D<some special options> ${PROJECT_SOURCE_DIR}
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build
)

Basically, i am building the same project again in a subdir with some other
special flags. Soon as i open the project in kdevelop it seems to execute the
same above command in the "~/Documents" folder (or kdevelop's current working
directory) and I get all the "CMakeFiles" and other cmake generated files and
directories.

Reproducible: Always

Steps to Reproduce:
1) Unzip the attachement. This should result in two files CMakeLists.txt and
kdevtest.kdev. To start clean let there be only these two files in the
directory.
2) launch kdevelop from that directory with the command "kdevelop -p
kdevtest.kdev"

Actual Results:  
The directory gets polluted with the cmake build files resulting from the
EXECUTE_PROCESS() command.

Expected Results:  
The directory should contain only the two files (apart from the hidden ".kdev4"
directory) that were initially extracted.

Since this process could potentially overwrite preexisting files, it could even
be considered severe in such cases.

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