Skip to content

Commit

Permalink
使用ライブラリの-sオプションの追加とLINK_FLAGSからCOMPILE_FLAGSへの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nokotan committed Mar 26, 2020
1 parent bf31950 commit aecb95f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ target_sources(DxLib

set_target_properties(DxLib
PROPERTIES
LINK_FLAGS "-s USE_FREETYPE=1 -s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1"
COMPILE_FLAGS "-s USE_FREETYPE=1 -s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1"
CXX_STANDARD 11
)

Expand All @@ -91,7 +91,7 @@ target_sources(DxDrawFunc

set_target_properties(DxDrawFunc
PROPERTIES
LINK_FLAGS "-s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1"
COMPILE_FLAGS "-s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1"
CXX_STANDARD 11
)

Expand All @@ -115,8 +115,7 @@ target_sources(DxUseCLib

set_target_properties(DxUseCLib
PROPERTIES
LINK_FLAGS "-s USE_OGG=1 -s USE_VORBIS=1 -s USE_LIBPNG=1 -s USE_LIBJPEG=1 -s USE_ZLIB=1 -s USE_BULLET=1 -s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1"
COMPILE_FLAGS "-s USE_OGG=1 -s USE_VORBIS=1 -s USE_LIBPNG=1 -s USE_LIBJPEG=1 -s USE_ZLIB=1 -s USE_BULLET=1 -s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1"
CXX_STANDARD 11
)

set(CMAKE_CXX_FLAGS "-s SIDE_MODULE=1 -s ALLOW_MEMORY_GROWTH=1")

0 comments on commit aecb95f

Please sign in to comment.