some tweaks
This commit is contained in:
parent
e58e3f1cb5
commit
bed32bc947
@ -15,8 +15,8 @@ cmake_minimum_required(VERSION 3.13)
|
|||||||
|
|
||||||
set(CMAKE_SCRIPT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
set(CMAKE_SCRIPT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
if(NOT OS_FSFW)
|
if(NOT FSFW_OSAL)
|
||||||
set(OS_FSFW host CACHE STRING "OS for the FSFW.")
|
set(FSFW_OSAL host CACHE STRING "OS for the FSFW.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Project Name
|
# Project Name
|
||||||
@ -70,7 +70,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|||||||
add_compile_definitions(NOMINMAX)
|
add_compile_definitions(NOMINMAX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${OS_FSFW} STREQUAL linux)
|
if(FSFW_OSAL MATCHES linux)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
# Hosted
|
# Hosted
|
||||||
else()
|
else()
|
||||||
@ -128,11 +128,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Removed unused sections.
|
# Removed unused sections.
|
||||||
if(NOT ${OS_FSFW} MATCHES rtems)
|
|
||||||
target_link_options(${TARGET_NAME} PRIVATE
|
target_link_options(${TARGET_NAME} PRIVATE
|
||||||
"-Wl,--gc-sections"
|
"-Wl,--gc-sections"
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -161,7 +159,7 @@ endif()
|
|||||||
|
|
||||||
string(CONCAT POST_BUILD_COMMENT
|
string(CONCAT POST_BUILD_COMMENT
|
||||||
"Build directory: ${CMAKE_BINARY_DIR}\n"
|
"Build directory: ${CMAKE_BINARY_DIR}\n"
|
||||||
"Target OSAL: ${OS_FSFW}\n"
|
"Target OSAL: ${FSFW_OSAL}\n"
|
||||||
"Target Build Type: ${CMAKE_BUILD_TYPE}\n"
|
"Target Build Type: ${CMAKE_BUILD_TYPE}\n"
|
||||||
"${TARGET_STRING}"
|
"${TARGET_STRING}"
|
||||||
)
|
)
|
||||||
|
@ -101,7 +101,7 @@ def main():
|
|||||||
print(f"Navigating into build directory: {build_path}")
|
print(f"Navigating into build directory: {build_path}")
|
||||||
os.chdir(cmake_build_folder)
|
os.chdir(cmake_build_folder)
|
||||||
|
|
||||||
cmake_command = f"cmake {generator_cmake_arg} -DOS_FSFW=\"{cmake_fsfw_osal}\" " \
|
cmake_command = f"cmake {generator_cmake_arg} -DFSFW_OSAL=\"{cmake_fsfw_osal}\" " \
|
||||||
f"-DCMAKE_BUILD_TYPE=\"{cmake_build_type}\" {cmake_target_cfg_cmd} " \
|
f"-DCMAKE_BUILD_TYPE=\"{cmake_build_type}\" {cmake_target_cfg_cmd} " \
|
||||||
f"{define_string} {source_location}"
|
f"{define_string} {source_location}"
|
||||||
# Remove redundant spaces
|
# Remove redundant spaces
|
||||||
|
2
fsfw
2
fsfw
@ -1 +1 @@
|
|||||||
Subproject commit 8189435b94b65e432b06dad930f6da8d38173e14
|
Subproject commit 3a9add82fe56b4b75b0079b48c094e6c4f778c42
|
Loading…
Reference in New Issue
Block a user