mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
update bx to require c++14 and add compiler flag for bx when using MSVC
This commit is contained in:
committed by
Tom Hulton-Harrop
parent
896ab5478c
commit
26a0f1e54d
2
bgfx
2
bgfx
Submodule bgfx updated: 9204a536dd...db44d5675f
2
bx
2
bx
Submodule bx updated: 6332fb0305...aa5090bbd8
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user