mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-24 17:09:39 -04:00
Make sure our code base is buildable using GCC-11 Removed deprecated asan lib from Linux target. Co-authored-by: Alek <aleksander.rudnik@mudita.com> Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
29 lines
697 B
CMake
29 lines
697 B
CMake
set(PROJECT_TARGET "TARGET_Linux" CACHE INTERNAL "")
|
|
|
|
set(TARGET_SOURCES CACHE INTERNAL "")
|
|
|
|
set(TARGET_DIR_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/board/linux CACHE INTERNAL "")
|
|
|
|
set(TARGET_COMPILE_FEATURES CACHE INTERNAL "")
|
|
|
|
set(TARGET_COMPILE_DEFINITIONS CACHE INTERNAL "")
|
|
|
|
|
|
add_compile_options(-funsigned-char)
|
|
|
|
set(TARGET_LIBRARIES
|
|
rt
|
|
pthread
|
|
portaudio
|
|
CACHE INTERNAL "" )
|
|
|
|
|
|
option (LINUX_ENABLE_SANITIZER "Enable address sanitizer for Linux" ON)
|
|
if (LINUX_ENABLE_SANITIZER)
|
|
add_compile_options(-fsanitize=address)
|
|
add_link_options(-fsanitize=address)
|
|
endif (LINUX_ENABLE_SANITIZER)
|
|
|
|
set(CMAKE_STRIP strip CACHE INTERNAL "")
|
|
set(CMAKE_OBJCOPY objcopy CACHE INTERNAL "")
|