Make -Werror optional
This commit is contained in:
@@ -1 +1 @@
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_WERROR=ON ..
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export CMAKE_OPTS="-DUSE_WERROR=ON"
|
||||
../build_mingw32 || ../build_mingw32
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export CMAKE_OPTS="-DUSE_WERROR=ON"
|
||||
../build_mingw64 || ../build_mingw64
|
||||
|
||||
@@ -1 +1 @@
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. -DUSE_WERROR=OFF
|
||||
|
||||
@@ -358,7 +358,8 @@ CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/plugins/zynaddsubfx/zynaddsubfx.rc.in" "${CM
|
||||
|
||||
# set compiler flags
|
||||
SET(WERROR_FLAGS "-Wall -Werror=unused-function -Wno-sign-compare -Wno-strict-overflow")
|
||||
IF(NOT LMMS_BUILD_APPLE)
|
||||
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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user