Closed bluca closed 8 years ago
Yes. As mentioned in the commit comment for 103813795e67 CMAKE_C_FLAGS_RELEASE will default to -O3 for almost all compilers/targets. Have a look at generated CMakeCache.txt to confirm this. You can see this is the case for gcc and the intel compiler: https://github.com/Kitware/CMake/blob/dfa01fd005502cf8d80d007bb42d21e2817d4d73/Modules/Compiler/GNU.cmake https://github.com/Kitware/CMake/blob/a100888b757ec48781d873824e13b0255602162d/Modules/Compiler/Intel-C.cmake
Thanks for your contributions!
:+1: More coming very shortly :-)
Hi,
These commits from @nickbroon add a cppcheck target to CMake, and fix a lot of the warnings generated.