Skip to content
This repository has been archived by the owner on Sep 29, 2019. It is now read-only.

cmake_minimum_required #6

Open
comargo opened this issue May 11, 2017 · 3 comments
Open

cmake_minimum_required #6

comargo opened this issue May 11, 2017 · 3 comments

Comments

@comargo
Copy link

comargo commented May 11, 2017

Is there a reason for cmake_minimum_required(VERSION 3.6) ?
The Ubuntu 16.04 LTS currently uses cmake 3.5.1

@eugene-babichenko
Copy link
Owner

There is no specific reason for that. By the way, I recommend you not to use this utility, because of its bad compatibility with new versions of Cube. Also I'm not planning to maintain it anymore because I have no time for that. But I see people are interested in such a way of working with Cube, so I'll write a manual on using Cube along with CMake when I'll be working on STM32 projects again (probably next two or three weeks)

@comargo
Copy link
Author

comargo commented May 16, 2017

(Прямо даже не знаю куда написать, так что напишу тут)
В последней версии STM32CubeMX появился генератор для Makefile, только он ищет тулчейн в корне :)

BINPATH =
PREFIX = arm-none-eabi-
CC = $(BINPATH)/$(PREFIX)gcc

В результате дает /arm-none-eabi-gcc

@eugene-babichenko
Copy link
Owner

Мегакрутая новость, спасибо :)

Ну видимо они подразумевают, что надо в BINPATH указать путь к директории с бинарниками компилятора. Если он (компилятор) установлен в систему по-человечески, то можно просто оставить CC = $(PREFIX)gcc

А по-хорошему, как мне кажется, надо выкинуть определение BINPATH из Makefile, и прокидывать через переменные окружения или аргументом к make. Обязательно посмотрю всю эту историю на днях..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants