Skip to content

Commit

Permalink
Don't use target_compile_definitions with modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuanqiXu9 committed Jun 7, 2023
1 parent e6baeeb commit 22b4336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ if(NOT ${UTHREAD})
endif()

if (${ASYNC_SIMPLE_DISABLE_AIO} OR NOT LIBAIO_INCLUDE_DIR OR NOT LIBAIO_LIBRARIES)
target_compile_definitions(libasync_simple INTERFACE ASYNC_SIMPLE_HAS_NOT_AIO)
add_definitions(-DASYNC_SIMPLE_HAS_NOT_AIO)
endif()

0 comments on commit 22b4336

Please sign in to comment.