if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
#	add_definitions(-Wall -Wextra -Wpedantic -Wconversion -Wold-style-cast -Weffc++)
	add_definitions(-Wall -Wextra -Wpedantic -Wconversion -Wold-style-cast)
	if(SANITIZE)
	    add_definitions(-fsanitize=address -fsanitize=undefined)
	    list( APPEND LIBRARIES asan ubsan )
	elseif(TSANITIZE)
	    add_definitions(-fsanitize=thread)
	    list( APPEND LIBRARIES tsan )
	endif()
endif()
