We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75b389c commit 676ba9aCopy full SHA for 676ba9a
CMakeLists.txt
@@ -16,6 +16,10 @@ if(APPLE)
16
set(CMAKE_MACOSX_RPATH ON)
17
endif()
18
19
+if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
20
+ list(APPEND uvwasi_defines _GNU_SOURCE _POSIX_C_SOURCE=200112)
21
+endif()
22
+
23
include(FetchContent)
24
## https://libuv.org
25
FetchContent_Declare(
@@ -65,6 +69,7 @@ endif()
65
69
66
70
## Static library target.
67
71
add_library(uvwasi_a STATIC ${uvwasi_sources})
72
+target_compile_definitions(uvwasi_a PRIVATE ${uvwasi_defines})
68
73
target_compile_options(uvwasi_a PRIVATE ${uvwasi_cflags})
74
target_include_directories(uvwasi_a PRIVATE ${PROJECT_SOURCE_DIR}/include)
75
if(CODE_COVERAGE)
0 commit comments