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 197245 - "make options" under C/C++ project options have no effect
Summary: "make options" under C/C++ project options have no effect
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on: 192730
Blocks:
  Show dependency tree
 
Reported: 2011-03-30 16:41 UTC by mkosch
Modified: 2019-03-15 10:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project to reproduce issue (440 bytes, application/zip)
2011-04-07 08:00 UTC, mkosch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mkosch 2011-03-30 16:41:54 UTC
Custom "make options" entered under C/C++ project options have no effect in Netbeans 7.0 RC1. This was observed using a CMake based C++ project.
The "make options" worked properly under Netbeans 6.9.1.

An easy way to reproduce this behavior is to enter an invalid make option. In Netbeans 6.9.1 you get an error at the beginning of compilation. Netbeans 7.0 RC1 doesn't recognize the entered option.
Comment 1 soldatov 2011-03-30 18:55:56 UTC
I recommend to fix this bug in next patch
Comment 2 Alexander Simon 2011-04-06 17:02:49 UTC
Cannot reproduce issue.
My test case:
- create Welcome sample
- "Tools->options->c/C++->Project Options", type qq in the field "Make Options".
- clear and build project.
Result: Build failed because target qq does not exist.

Please reopen bug with steps to reproduce if you bug still exists.
Comment 3 mkosch 2011-04-07 08:00:55 UTC
Created attachment 107580 [details]
Test project to reproduce issue

As I mentioned, I experienced this using a CMake based C++ project.
Steps to reproduce:

1. Extract "cmake-test.zip".
2. Run NetBeans IDE 7.0 RC1 (Build 201103280000) [English].
3. "File" -> "New Project" : "C/C++" -> "C/C++ Project with Existing Sources"
4. Select folder with extracted files and click "Finish" button.
5. Build project. => "BUILD SUCCESSFUL (total time: 77ms)"
6. "Tools" -> "Options" : "C/C++" -> "Project Options"
7. Enter something invalid into "Make Options:", for example "dgerjrtkejd".
8. Build project. => "BUILD SUCCESSFUL (total time: 116ms)"

Now do the same using NetBeans IDE 6.9.1 (Build 201011082200) [German].
=> "gmake: *** Keine Regel, um »dgerjrtkejd« zu erstellen.  Schluss."
=> "BUILD FAILED (exit value 2, total time: 67ms)"
Comment 4 Alexander Simon 2011-04-07 08:43:04 UTC
NB 7.0 uses "make options" for "managed projects" only.
Unmanaged projects (projects with existing code) uses make command from project properties:
Build->Make->Build Command
Build->Make->Clean Command

It is a result of fixing Bug #192730.
So NB 7.0 does not use "make options" for unmanaged projects.
Work around:
Set needed options in project properties.
Comment 5 sindisil 2013-03-01 22:27:45 UTC
Sorry to necro, but it'd sure be nice if the "Project Options" tab made it clear that those options only apply to "managed projects".

Additionally, might it be possible to have the new project wizard pull in these options when suggesting the make command lines?
Comment 6 Thanos1234 2019-03-15 10:11:51 UTC
Must be thanks for the nice post looking here https://myeuchre.com and free online euchre games play this amazing way with all friends.