add build mode log message in CMakeLists.txt