Again, nice work. I was messing with using find_program to locate cppcheck . The way this works was quite surprising. The find_program function will return VARNAME-NOTFOUND if it can't find the executable specified. Then if() magically treats strings ending in -NOTFOUND as falsy. I also made the mistake of using CMAKE_CXX_CPPCHECK as the variable initially which doesn't work well since it tries to use the CMAKE_CXX_CPPCHECK-NOTFOUND value as the path to the executable if it wasn't found.
talignmen I will be covering the find_{path,library,program} commands soon. They're extremely powerful and useful. Understanding the -NOTFOUND falsiness is essential to working with those commands.
Variables can be used by themselves only sometimes. In a "message( NOTICE MY_STRING)" it will print the variable name, not the value. Cmake is so logical....
Amazing! Clear, to the point and with examples!
Awesome videos so far! I've just subscribed :) Would love to see a video on installing (import/export etc.). Keep up the great work!
Great tutorial! I'm your subscriber now. Keep up the good work!
Great series of videos!
you, sir, deserve a like!
learned a lot from these videos. Thanks for making them!
Again, nice work.
I was messing with using find_program to locate cppcheck . The way this works was quite surprising. The find_program function will return VARNAME-NOTFOUND if it can't find the executable specified. Then if() magically treats strings ending in -NOTFOUND as falsy. I also made the mistake of using CMAKE_CXX_CPPCHECK as the variable initially which doesn't work well since it tries to use the CMAKE_CXX_CPPCHECK-NOTFOUND value as the path to the executable if it wasn't found.
talignmen I will be covering the find_{path,library,program} commands soon. They're extremely powerful and useful. Understanding the -NOTFOUND falsiness is essential to working with those commands.
Great videos! I'm looking forward to watching more. If possible could you increase the size of the fonts, etc to make things more readable? Thanks!
this is great.. welldone!
Variables can be used by themselves only sometimes. In a "message( NOTICE MY_STRING)" it will print the variable name, not the value. Cmake is so logical....
Keep cmaking videos good 👍
awesome!