diff options
Diffstat (limited to 'example/CMakeLists.txt')
-rw-r--r-- | example/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index f4829cc8..c6b8449f 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -19,6 +19,8 @@ set(EXAMPLES include_directories("../include/") +add_definitions(-D__STDC_FORMAT_MACROS) + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default") elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") |