How to check if a CMake build directory build type is Debug or Release?

前端 未结 2 1252
一向
一向 2020-12-11 17:00

I know the build type can be set using -DCMAKE_BUILD_TYPE=Release or -DCMAKE_BUILD_TYPE=Debug but is there a command line way to check/confirm whic

2条回答
  •  庸人自扰
    2020-12-11 17:19

    You can grep the value from the CMakeCache.txt file in the build dir. Just out of curiosity, what are you trying to do ?

提交回复
热议问题