summaryrefslogtreecommitdiffstats
path: root/tests/ChunkData
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-19 20:53:16 +0200
committertycho <work.tycho@gmail.com>2015-05-19 20:53:16 +0200
commit7f35671b21140331dcf93368340191cd0bce8cee (patch)
treea541078e356ac85ebba63354d86b1812eb3fd062 /tests/ChunkData
parentMerge branch 'master' into PreventNewWarnings (diff)
downloadcuberite-7f35671b21140331dcf93368340191cd0bce8cee.tar
cuberite-7f35671b21140331dcf93368340191cd0bce8cee.tar.gz
cuberite-7f35671b21140331dcf93368340191cd0bce8cee.tar.bz2
cuberite-7f35671b21140331dcf93368340191cd0bce8cee.tar.lz
cuberite-7f35671b21140331dcf93368340191cd0bce8cee.tar.xz
cuberite-7f35671b21140331dcf93368340191cd0bce8cee.tar.zst
cuberite-7f35671b21140331dcf93368340191cd0bce8cee.zip
Diffstat (limited to 'tests/ChunkData')
-rw-r--r--tests/ChunkData/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ChunkData/CMakeLists.txt b/tests/ChunkData/CMakeLists.txt
index 381e11cc2..4079b7d93 100644
--- a/tests/ChunkData/CMakeLists.txt
+++ b/tests/ChunkData/CMakeLists.txt
@@ -4,6 +4,13 @@ enable_testing()
include_directories(${CMAKE_SOURCE_DIR}/src/)
+
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ChunkData.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=sign-conversion")
+ set_source_files_properties(${CMAKE_SOURCE_DIR}/src/StringUtils.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=conversion")
+endif()
+
+
add_definitions(-DTEST_GLOBALS=1)
add_library(ChunkBuffer ${CMAKE_SOURCE_DIR}/src/ChunkData.cpp ${CMAKE_SOURCE_DIR}/src/StringUtils.cpp)