Skip to content

Commit

Permalink
fix cmake bug
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingrabbit committed Apr 5, 2024
1 parent 14b486c commit 6261bc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ if(C2A_USE_STDINT_WRAPPER)
include_directories(library/stdint_wrapper)
endif()

if(C2A_MOBC_FEATURES)
message("Enable some features for MOBC")
target_compile_definitions(${PROJECT_NAME} PUBLIC C2A_MOBC_FEATURES)
endif()

execute_process(
COMMAND git log -1 --format=%H
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
Expand Down Expand Up @@ -114,6 +109,11 @@ if(C2A_USE_ALL_CORE_LIB)
target_sources(${PROJECT_NAME} PUBLIC $<TARGET_OBJECTS:C2A_CORE_LIB>)
endif()

if(C2A_MOBC_FEATURES)
message("Enable some features for MOBC")
target_compile_definitions(${PROJECT_NAME} PUBLIC C2A_MOBC_FEATURES)
endif()

if(C2A_USE_SPACE_PACKET_AS_COMMON_PACKET)
add_subdirectory(tlm_cmd/common_packet/space_packet)
target_sources(${PROJECT_NAME} PUBLIC $<TARGET_OBJECTS:C2A_CORE_SPACE_PACKET_AS_COMMON_PACKET>)
Expand Down

0 comments on commit 6261bc6

Please sign in to comment.