Skip to content

Commit effd73d

Browse files
committed
ace2: Define __STDC_XXX_MACROS.
Fixes verilog-to-routing#369.
1 parent 67ea402 commit effd73d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ace2/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ target_link_libraries(ace
1818
${CMAKE_DL_LIBS})
1919

2020
#ACE uses some ABC functions (st__insert) which cause warnings - we suppress them here
21-
set(ACE_SUPPRESS_FLAGS
21+
set(ACE_SUPPRESS_FLAGS
2222
-Wno-int-to-pointer-cast
2323
)
2424

25+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLAGS_COMMON} -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS")
26+
2527
include(CheckCXXCompilerFlag)
2628
foreach(flag ${ACE_SUPPRESS_FLAGS})
2729
CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag})

0 commit comments

Comments
 (0)