update bx to require c++14 and add compiler flag for bx when using MSVC

This commit is contained in:
e-erdal
2022-06-24 11:42:25 +03:00
committed by Tom Hulton-Harrop
parent 896ab5478c
commit 26a0f1e54d
3 changed files with 6 additions and 2 deletions

2
bgfx

Submodule bgfx updated: 9204a536dd...db44d5675f

2
bx

Submodule bx updated: 6332fb0305...aa5090bbd8

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 )