From 6cff077a33d3100ee235c3186682cd458d77aaee Mon Sep 17 00:00:00 2001 From: Joshua Brookover Date: Tue, 28 Feb 2017 21:55:38 -0600 Subject: [PATCH] Adding some flags for issue #4 --- cmake/bx.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/bx.cmake b/cmake/bx.cmake index b5204b6..e94d116 100644 --- a/cmake/bx.cmake +++ b/cmake/bx.cmake @@ -31,13 +31,17 @@ target_include_directories( bx PUBLIC ${BX_DIR}/include ) # Build system specific configurations if( MSVC ) target_include_directories( bx PUBLIC ${BX_DIR}/include/compat/msvc ) - target_compile_definitions( bx PUBLIC "__STDC_FORMAT_MACROS" ) elseif( MINGW ) target_include_directories( bx PUBLIC ${BX_DIR}/include/compat/mingw ) elseif( APPLE ) target_include_directories( bx PUBLIC ${BX_DIR}/include/compat/osx ) endif() +# All configurations +target_compile_definitions( bx PUBLIC "__STDC_LIMIT_MACROS" ) +target_compile_definitions( bx PUBLIC "__STDC_FORMAT_MACROS" ) +target_compile_definitions( bx PUBLIC "__STDC_CONSTANT_MACROS" ) + # Threads if( UNIX AND NOT APPLE ) find_package( Threads )