Put the path to the source dir last, like the cmake manual says:
cmake [options] <path-to-source>
Also put a space between the -D option and the configuration setting it
modifies, this is more readable.
$ mkdir build
$ cd build
- $ cmake ../ -DCMAKE_BUILD_TYPE=debug -DSTRICT_COMPILATION_CHECKS=ON
+ $ cmake -D CMAKE_BUILD_TYPE=debug -D STRICT_COMPILATION_CHECKS=ON ../
$ make
If you want to check the code with the ''sparse'' static analysis tool you
$ mkdir build
$ cd build
- $ cmake ../ -DCMAKE_C_COMPILER=cgcc
+ $ cmake -D CMAKE_C_COMPILER=cgcc ../
$ make
=== Valgrind