Skip to content

Commit

Permalink
Rename CORE_COMPILE_DEFS to REACTORC_COMPILE_DEFS
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj authored and lhstrh committed Feb 4, 2024
1 parent 206b373 commit f7a9e30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ else()
endif()

# Apply compile definitions to the reactor-c library.
target_compile_definitions(reactor-c PUBLIC ${CORE_COMPILE_DEFS})
target_compile_definitions(reactor-c PUBLIC ${REACTORC_COMPILE_DEFS})

target_include_directories(reactor-c PUBLIC ../include)
target_include_directories(reactor-c PUBLIC ../include/core)
Expand Down
6 changes: 3 additions & 3 deletions core/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(CMAKE_SYSTEM_VERSION 10.0)
message("Using Windows SDK version ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Nrf52")
list(APPEND CORE_COMPILE_DEFS PLATFORM_NRF52)
list(APPEND REACTORC_COMPILE_DEFS PLATFORM_NRF52)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Zephyr")
list(APPEND CORE_COMPILE_DEFS PLATFORM_ZEPHYR)
list(APPEND REACTORC_COMPILE_DEFS PLATFORM_ZEPHYR)
set(PLATFORM_ZEPHYR true)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Stm32")
target_compile_definitions(core PUBLIC PLATFORM_STM32F4)
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Rp2040")
list(APPEND CORE_COMPILE_DEFS PLATFORM_RP2040)
list(APPEND REACTORC_COMPILE_DEFS PLATFORM_RP2040)
endif()

# Prepend all sources with platform
Expand Down

0 comments on commit f7a9e30

Please sign in to comment.