From ffd5f85f83dcf778d9c7160ec3c0d7c45b38bdfc Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 16 Feb 2021 18:57:17 +0530 Subject: [PATCH] Suppress undefined-var-template --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4789a3c..99bf5ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -431,7 +431,7 @@ target_link_libraries(${PROJECT_NAME} SET(EMS_FLAGS " -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s USE_ZLIB=1 -s USE_OGG=1 -s USE_VORBIS=1 -s USE_SDL_TTF=2 --std=c++14 -O3 -g0") SET(ASYNCIFY "-s ASYNCIFY=1 -s 'ASYNCIFY_IMPORTS=[\"load_file_async_js\"]'") -#SET(ERR_FLAGS " -Werror") +SET(ERR_FLAGS " -Wno-undefined-var-template") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EMS_FLAGS} ${ERR_FLAGS} ${ASYNCIFY}") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EMS_FLAGS} ${ERR_FLAGS} ${ASYNCIFY}")