Skip to content

Commit 8a1d371

Browse files
Merge pull request #18 from Guillaumebeuzeboc/tests
Tests
2 parents 74466d2 + f65957b commit 8a1d371

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/haricot/cmake/TopLevelCMake.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required(VERSION 3.5)
22
project(workspace)
33

4+
enable_testing()
5+
46
set(cmd "dirname -z $(realpath CMakeLists.txt)")
57
execute_process(COMMAND bash -c ${cmd}
68
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}

src/haricot/cmake/stm32/stm32l4xx.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ endif()
44

55
set(CUBE_HOME "$ENV{CUBE}" CACHE INTERNAL "Copied from environment variable")
66

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")
88

99
SET (LINKER_SCRIPT "${CUBE_ROOT}/Projects/NUCLEO-L476RG/Templates/SW4STM32/STM32L476RG_NUCLEO/STM32L476RGTx_FLASH.ld")
1010

1111
SET (CMAKE_SYSTEM_NAME Generic)
1212
SET (CMAKE_SYSTEM_PROCESSOR arm)
1313

1414

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")
1616

1717
SET (CMAKE_EXE_LINKER_FLAGS "-T ${LINKER_SCRIPT} -specs=nosys.specs -Wl,--gc-sections" CACHE INTERNAL "exe link flags")

0 commit comments

Comments
 (0)