diff --git a/CMakeLists.txt b/CMakeLists.txt index f1fbfe8..707725f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ endif() if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) # -Wundef -Wlong-long -Wpadded set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wzero-as-null-pointer-constant -Weffc++ -Wunknown-pragmas") - if (NOT CMAKE_UILD_TYPE STREQUAL "Debug") + if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") # set(CMAKE_SHARED_LINKER_FLAGS "") endif()