diff --git a/CMakeLists.txt b/CMakeLists.txt index d4b3c1b2..483aa85f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,7 +142,9 @@ if(SPDLOG_BUILD_PIC) endif() find_package(Threads REQUIRED) -message(STATUS "Build type: " ${CMAKE_BUILD_TYPE}) +if(DEFINED CMAKE_BUILD_TYPE) + message(STATUS "Build type: " ${CMAKE_BUILD_TYPE}) +endif() # --------------------------------------------------------------------------------------- # Static/Shared library # ---------------------------------------------------------------------------------------