Comments (8)
The path hello.x - hello - hello.x let me touch upon the implicit rules. I would like to keep it.
from cmake.
I think the implicit rules are cool to have there. Will it not work with having only "hello.x"? I know too little about the implicit rules but I fear confusion in this example.
from cmake.
Alternatively we can also switch everything else from hello.x to hello if that helps. But perhaps I simply don't get it :-)
from cmake.
You need the additonal rule which I add during the lesson to make it work for hello.x. Initially,I asked that question on Slack, but after having worked with example I understood why. The implicit rule is to make a binary from the stem part of hello.c, like this : %: %.c
from cmake.
OK but this to me is a bit confusing:
hello.x: hello.cpp
g++ hello.cpp -o hello
I would expect g++ hello.cpp -o hello.x
- this may make sense further down but at this point it surprised me.
from cmake.
You are right, I made an error here. It is g++ hello.cpp -o hello.x
from cmake.
Issue will go out of scope with #21.
from cmake.
Issue is not relevant anymore. Closing.
from cmake.
Related Issues (17)
- Show how to define compiler flags per target or per file HOT 1
- POST_BUILD example in 03-hello-world-cmake HOT 5
- Compiler flags and find family
- Replace the weather/fruit examples with more real life examples HOT 4
- Add WORKING_DIRECTORY to git hash example HOT 1
- Be clear on where to make the build directory
- Simplify fizz-buzz example HOT 1
- Simplify find_packages example HOT 11
- Consider showing some language constructs HOT 1
- "make test" not visible in parent scope
- Motivate better why CMake if already using Make.
- Compare qmake and CMake and snakemake
- Consider extending to a 1-day workshop HOT 1
- Include formative assessment questions at the end of each episode
- Change license from CC-BY-SA to CC-BY HOT 5
- Section about build directly structure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmake.