mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-08 21:36:02 -04:00
Disable self-assignment warning for tests
As we deliberately do these self-assignments. Fixes -Werror build with clang 3.6.
This commit is contained in:
parent
687d8f848f
commit
a31677af6a
@ -12,6 +12,13 @@ SET(GUI_TESTS
|
|||||||
gui_rendering
|
gui_rendering
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# disable self-move warning: it's deliberately used in tests
|
||||||
|
INCLUDE(CheckCXXCompilerFlag)
|
||||||
|
CHECK_CXX_COMPILER_FLAG("-Wno-self-move" COMPILER_SUPPORTS_WNOSELFMOVE)
|
||||||
|
IF(COMPILER_SUPPORTS_WNOSELFMOVE)
|
||||||
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-self-move")
|
||||||
|
ENDIF(COMPILER_SUPPORTS_WNOSELFMOVE)
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DTESTDATA_DIR="${PROJECT_SOURCE_DIR}/testdata")
|
ADD_DEFINITIONS(-DTESTDATA_DIR="${PROJECT_SOURCE_DIR}/testdata")
|
||||||
|
|
||||||
# header tests: these just include specific headers to check if
|
# header tests: these just include specific headers to check if
|
||||||
|
Loading…
x
Reference in New Issue
Block a user