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 258326 - Cmake Command path is ignored
Summary: Cmake Command path is ignored
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-11 10:39 UTC by keithyip
Modified: 2016-04-20 13:50 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 keithyip 2016-03-11 10:39:14 UTC
After creating a project from existing cmake project, the pre-build was fine. Running the pre-build again failed.

Create helloworld.cpp and CMakeLists.txt copied from http://derekmolloy.ie/hello-world-introductions-to-cmake/#Example_1_The_Hello_World_Example
Created a project from existing sources
In CmakeLists (CMake)

cd '/Users/keithyip/Documents/Workspace/horse-racing/build'
/usr/local/bin/cmake  -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_C_FLAGS_DEBUG="-g3 -gdwarf-2" -DCMAKE_CXX_FLAGS_DEBUG="-g3 -gdwarf-2" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
-- The C compiler identification is AppleClang 7.0.2.7000181
-- The CXX compiler identification is AppleClang 7.0.2.7000181
.
.
.

Click Pre-build

cd '/Users/keithyip/Documents/Workspace/myproject/build'
cmake -G Unix Makefiles -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_C_FLAGS_DEBUG=-g3 -gdwarf-2 -DCMAKE_CXX_FLAGS_DEBUG=-g3 -gdwarf-2 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
failed to start cmake: No such file or directory
Comment 1 Alexander Simon 2016-03-17 13:20:36 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/e0bc151756e9
Comment 2 Quality Engineering 2016-03-18 02:47:47 UTC
Integrated into 'main-silver', will be available in build *201603180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e0bc151756e9
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #258326 Cmake Command path is ignored
Comment 3 Vladimir Kvashin 2016-04-15 16:59:50 UTC
verified in builds on enum server
Comment 4 soldatov 2016-04-20 13:50:55 UTC
Verified in NetBeans 8.1 with latest updates.