Skip to content

Commit 7fcce9c

Browse files
committed
build: repair macro definition handling
1 parent 4c91d20 commit 7fcce9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ if(CMAKE_SYSTEM_NAME STREQUAL Windows)
109109
_CRT_NONSTDC_NO_WARNINGS
110110
_CRT_SECURE_NO_WARNINGS)
111111
elseif(CMAKE_SYSTEM_NAME STREQUAL Android)
112-
target_compile_definitions(dispatch PRIVATE
112+
target_compile_options(dispatch PRIVATE
113113
-U_GNU_SOURCE)
114114
endif()
115115
if(DISPATCH_ENABLE_ASSERTS)
116116
target_compile_definitions(dispatch PRIVATE
117-
-DDISPATCH_DEBUG=1)
117+
DISPATCH_DEBUG=1)
118118
endif()
119119

120120
if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")

0 commit comments

Comments
 (0)