From bcf7e3efabd2bfb0dd28ded17702ef134fe9f2c9 Mon Sep 17 00:00:00 2001 From: df8oe Date: Sat, 10 Jun 2017 07:12:39 +0200 Subject: [PATCH] prepared removing deprecated funczions in CMake --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d44707..70beaa4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,8 @@ SET(CMAKE_SYSTEM_VERSION 1) if(UNIX) +# set(CMAKE_C_COMPILER "/opt/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc") +# set(CMAKE_CXX_COMPILER "/opt/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-g++") set(TOOLCHAIN_DIR "/opt/gcc-arm-none-eabi-5_4-2016q3/bin/") CMAKE_FORCE_C_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-gcc GNU) CMAKE_FORCE_CXX_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-g++ GNU) @@ -14,7 +16,7 @@ else() CMAKE_FORCE_CXX_COMPILER(${TOOLCHAIN_DIR}/arm-none-eabi-g++.exe GNU) endif() -project(STM32_RTTY C ASM CXX) +project(STM32_RTTY C CXX) add_definitions(-DSTM32F100C8) add_definitions(-DSTM32F10X_MD_VL)