File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required(VERSION 3.5)
2
2
project(workspace)
3
3
4
+ enable_testing()
5
+
4
6
set(cmd "dirname -z $(realpath CMakeLists.txt)")
5
7
execute_process(COMMAND bash -c ${cmd}
6
8
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ endif()
4
4
5
5
set (CUBE_HOME "$ENV{CUBE} " CACHE INTERNAL "Copied from environment variable" )
6
6
7
- SET (CUBE_ROOT "${CUBE_HOME} /Repository/STM32Cube_FW_L4_V1.14 .0" )
7
+ SET (CUBE_ROOT "${CUBE_HOME} /Repository/STM32Cube_FW_L4_V1.16 .0" )
8
8
9
9
SET (LINKER_SCRIPT "${CUBE_ROOT} /Projects/NUCLEO-L476RG/Templates/SW4STM32/STM32L476RG_NUCLEO/STM32L476RGTx_FLASH.ld" )
10
10
11
11
SET (CMAKE_SYSTEM_NAME Generic)
12
12
SET (CMAKE_SYSTEM_PROCESSOR arm)
13
13
14
14
15
- SET (CMAKE_CXX_FLAGS "-mcpu=cortex-m4 -std=c++11 -fno-rtti -fno-exceptions -Wall -fdata-sections -ffunction-sections -MD -Wall -Wno-psabi" CACHE INTERNAL "cxx compiler flags" )
15
+ SET (CMAKE_CXX_FLAGS "-mcpu=cortex-m4 -std=c++17 -fno-rtti -fno-exceptions -Wall -fdata-sections -ffunction-sections -MD -Wall -Wno-psabi" CACHE INTERNAL "cxx compiler flags" )
16
16
17
17
SET (CMAKE_EXE_LINKER_FLAGS "-T ${LINKER_SCRIPT} -specs=nosys.specs -Wl,--gc-sections" CACHE INTERNAL "exe link flags" )
You can’t perform that action at this time.
0 commit comments