Skip to content

Commit d58d4b5

Browse files
committed
Add CMake options
1 parent 3f695b5 commit d58d4b5

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

arm.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-lib-std.cmake)
6060
install(DIRECTORY include/cortexm include/device include/mcu include/sos include/usbd DESTINATION include)
6161
install(DIRECTORY include/posix/ DESTINATION include)
6262
install(DIRECTORY ldscript/ DESTINATION lib/ldscripts)
63+
64+
option(SOS_SKIP_CMAKE "Dont install the cmake files" ON)
65+
6366
if(NOT SOS_SKIP_CMAKE)
6467
install(DIRECTORY cmake/ DESTINATION cmake)
6568
endif()

cmake/sos-app.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
option(SOS_APP_VERBOSE "Create verbose makefiles" OFF)
3+
24
set(SOS_BUILD_ARCH ${SOS_APP_ARCH})
35
include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-build-flags.cmake)
46
include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-sdk.cmake)

cmake/sos-bsp.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
option(SOS_BSP_VERBOSE "Create verbose makefiles" OFF)
3+
24

35
set(SOS_BUILD_ARCH ${SOS_BSP_ARCH})
46
include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-build-flags.cmake)

cmake/sos-lib.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22

3+
option(SOS_LIB_VERBOSE "Create Verbose Makefiles" OFF)
4+
35
set(SOS_BUILD_ARCH ${SOS_LIB_ARCH})
46
include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-build-flags.cmake)
57
include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-sdk.cmake)

0 commit comments

Comments
 (0)