Merge pull request #137 from pr0g/master

update bx to require c++14 and add compiler flag for bx when using MSVC
This commit is contained in:
loanselot
2022-07-19 00:42:56 +03:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

2
bgfx

Submodule bgfx updated: b38389f04e...db44d5675f

View File

@@ -30,6 +30,10 @@ endif()
# Create the bx target
add_library( bx STATIC ${BX_SOURCES} )
target_compile_features( bx PUBLIC cxx_std_14 )
# (note: see bx\scripts\toolchain.lua for equivalent compiler flag)
target_compile_options( bx PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus> )
# Link against psapi on Windows
if( WIN32 )
target_link_libraries( bx PUBLIC psapi )