mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 01:55:12 +00:00
Fix compilation warnings in example project.
This commit is contained in:
parent
81e3686d3a
commit
a18004125d
1 changed files with 4 additions and 1 deletions
|
|
@ -5,7 +5,10 @@ project(example CXX)
|
|||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s STRICT=0 -s ASSERTIONS=0 -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=shell -s MALLOC=emmalloc --cache ${CMAKE_BINARY_DIR}/cache")
|
||||
set(COMPILE_FLAGS --cache ${CMAKE_BINARY_DIR}/cache)
|
||||
set(LINK_FLAGS -sASSERTIONS=0 -sMALLOC=emmalloc)
|
||||
add_compile_options(${COMPILE_FLAGS})
|
||||
add_link_options(${COMPILE_FLAGS} ${LINK_FLAGS})
|
||||
|
||||
add_subdirectory(screepsxx)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue