mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-07 00:55:40 +00:00
Add compiler flags to GCC or G++ to treat warnings as errors.
This commit is contained in:
parent
f03d381092
commit
3cd699ab58
|
@ -68,6 +68,14 @@ IF(MSVC)
|
|||
SET(CMAKE_LIBRARY_PATH "${CMAKE_LIBRARY_PATH};${MSVC_LIB_DIR}")
|
||||
ENDIF(MSVC)
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Werror")
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Werror")
|
||||
ENDIF()
|
||||
|
||||
ADD_SUBDIRECTORY(BPTCEncoder)
|
||||
ADD_SUBDIRECTORY(IO)
|
||||
ADD_SUBDIRECTORY(Core)
|
||||
|
|
Loading…
Reference in a new issue