This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247740 - Project dependent cmake settings stored in global attributes.xml
Summary: Project dependent cmake settings stored in global attributes.xml
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on: 247758
Blocks:
  Show dependency tree
 
Reported: 2014-10-06 15:44 UTC by FlorianOtto
Modified: 2015-11-23 10:32 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FlorianOtto 2014-10-06 15:44:22 UTC
The "Arguments" and "Run Directory" values for a CMakeLists.txt file are stored in the global attributes.xml file within C:\Users\<username>\AppData\Roaming\NetBeans\8.0\var instead of being stored in a configuration file within the projectfolder. Additionally they contain absolut paths, e.g. for the used compiler.
Example:
Arguments: -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=D:/MinGW/bin/gcc.exe -DCMAKE_CXX_COMPILER=D:/MinGW/bin/g++.exe -DCMAKE_C_FLAGS_DEBUG="-g3 -gdwarf-2" -DCMAKE_CXX_FLAGS_DEBUG="-g3 -gdwarf-2" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON   
Run Directory: D:/projects/basesystem_dev/build

This is especially uncomfortable when having the project configuration under source control to share one setup for all developers.

I think it would be a great enhancement, if the cmake arguments and the run directory would be stored in the configuration of the project and could contain relative paths and/or environment variables (like Run directory: PROJECT_ROOT/build). This would ensure that all developers involved in this project are using the same flags, output directories etc.


Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_67
Runtime = Java HotSpot(TM) Client VM 24.65-b04
Comment 1 Alexander Simon 2015-11-23 10:32:57 UTC
fixed in NB 8.1