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.
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
fixed, change sets: http://hg.netbeans.org/cnd-main/rev/ccc2b55c3714 http://hg.netbeans.org/cnd-main/rev/f81ea4ec346a
fix looks good.
Verified in internal build.
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
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