Skip to content

Commit

Permalink
Improve CMake a little
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Oct 26, 2024
1 parent 84e8027 commit c819ed2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ else ()
endif ()

# Add compile definitions for platform and network channel specifics.
add_compile_definitions("PLATFORM_${PLATFORM}")
target_compile_definitions(reactor-uc PRIVATE "PLATFORM_${PLATFORM}")

# Add compile definitions for event and reaction queue sizes.
target_compile_definitions(reactor-uc PRIVATE EVENT_QUEUE_SIZE=${EVENT_QUEUE_SIZE})
target_compile_definitions(reactor-uc PRIVATE REACTION_QUEUE_SIZE=${REACTION_QUEUE_SIZE})
# Add compile definitions for event and reaction queue sizes. Has to be PUBLIC because they are used in the header files.
target_compile_definitions(reactor-uc PUBLIC EVENT_QUEUE_SIZE=${EVENT_QUEUE_SIZE})
target_compile_definitions(reactor-uc PUBLIC REACTION_QUEUE_SIZE=${REACTION_QUEUE_SIZE})

if(NETWORK_POSIX_TCP)
target_compile_definitions(reactor-uc PRIVATE NETWORK_POSIX_TCP)
Expand Down

0 comments on commit c819ed2

Please sign in to comment.