diff --git a/CMakeLists.txt b/CMakeLists.txt index 70707f3..3301289 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -430,11 +430,11 @@ ENDIF(LMMS_BUILD_WIN32) PKG_CHECK_MODULES(SAMPLERATE REQUIRED samplerate>=0.1.8) # set compiler flags -SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow") -OPTION(USE_WERROR "Add -werror to the build flags. Stops the build on warnings" OFF) -IF(${USE_WERROR}) - SET(WERROR_FLAGS "${WERROR_FLAGS} -Werror") -ENDIF() +#SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow") +#OPTION(USE_WERROR "Add -werror to the build flags. Stops the build on warnings" OFF) +#IF(${USE_WERROR}) +# SET(WERROR_FLAGS "${WERROR_FLAGS} -Werror") +#ENDIF() # Due to a regression in gcc-4.8.X, we need to disable array-bounds check IF (CMAKE_COMPILER_IS_GNUCXX AND ((CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "4.8.0") OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.8.0") OR LMMS_BUILD_WIN32))