CMake - Release or Debug

CMake - Release or Debug

CMake Documentation
https://cmake.org/cmake/help/latest/

1. CMakeLists.txt

https://github.com/RMGDFT/rmgdft/blob/master/CMakeLists.txt

# Generic Release or Debug
# This should normally be set automatically to release. It can also be set when cmake is invoked
# by using -DCMAKE_BUILD_TYPE=Release or -DCMAKE_BUILD_TYPE=Debug
# set(CMAKE_BUILD_TYPE Debug)
if (NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE "Release")
endif ()

你可能感兴趣的:(CMake,-,CLion,CMake,Release,Debug)