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 268085 - MinGW: "Use Build Analyzer" check box breaks CMake based projects
Summary: MinGW: "Use Build Analyzer" check box breaks CMake based projects
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project Discovery (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: 82_HR_FIX
Depends on:
Blocks:
 
Reported: 2016-09-18 18:51 UTC by soldatov
Modified: 2016-09-20 11:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-09-18 18:51:28 UTC
CMakeLists.txt:
===================================
project(Test)
cmake_minimum_required(VERSION 2.8)
set(SRC main.cpp)
add_definitions(-DAAA=1)
add_executable(Test ${SRC})

main.cpp:
===================================
#if AAA != 1
# error AAA != 1
#endif

int main() {
    return 0;
}

Platform: Windows 10
Compiler: MinGW

Scenario:
- Call "C/C++ Project with Existing Sources" wizard
- Press Next button
- Select folder with CMakeLists.txt
==> "Use Build Analyzer" check box is switched on
- Press Finish button
==> Build fails
CMake Error at CMakeLists.txt:1 (project):
  The CMAKE_CXX_COMPILER:
  E:/sources/test/nbproject/private/tools/localhost/MinGW/g++
  is not a full path to an existing compiler tool.

Workaround:
- Call "C/C++ Project with Existing Sources" wizard
- Press Next button
- Select folder with CMakeLists.txt
- Switch off "Use Build Analyzer" check box!!!
- Press Finish button
==> ok
Comment 2 Vladimir Voskresensky 2016-09-19 14:41:43 UTC
fix looks good.
Comment 3 soldatov 2016-09-19 18:11:31 UTC
Verified in internal build.
Comment 4 Quality Engineering 2016-09-20 02:37:49 UTC
Integrated into 'main-silver', will be available in build *201609200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ccc2b55c3714
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #268085 MinGW: "Use Build Analyzer" check box breaks CMake based projects
Comment 5 Alexander Simon 2016-09-20 11:27:59 UTC
transplanted in releases, branch release82:
http://hg.netbeans.org/releases/rev/64dd28bafac1
http://hg.netbeans.org/releases/rev/7ec913f94a59
increment spec version:
http://hg.netbeans.org/releases/rev/2d4165d6889c