Skip to content

Commit 1def3fa

Browse files
Lowered CMake required version from 3.25 to 3.16
3.16 is the version shipped with Ubuntu 20.04, the oldest currently supported Ubuntu release
1 parent d62211f commit 1def3fa

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# You should have received a copy of the GNU General Public License
2424
# along with this program; if not, see <http://www.gnu.org/licenses/>
2525

26-
cmake_minimum_required(VERSION 3.25)
26+
cmake_minimum_required(VERSION 3.16)
2727

2828
project(Main C CXX ASM)
2929

miosix/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# You should have received a copy of the GNU General Public License
2424
# along with this program; if not, see <http://www.gnu.org/licenses/>
2525

26-
cmake_minimum_required(VERSION 3.25)
26+
cmake_minimum_required(VERSION 3.16)
2727

2828
project(Miosix
2929
VERSION 2.7

miosix/_examples/blinking_led/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# You should have received a copy of the GNU General Public License
2424
# along with this program; if not, see <http://www.gnu.org/licenses/>
2525

26-
cmake_minimum_required(VERSION 3.25)
26+
cmake_minimum_required(VERSION 3.16)
2727

2828
project(BlinkingLED C CXX ASM)
2929

miosix/cmake/miosix_link_target.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function(miosix_link_target TARGET OPT_BOARD)
4949

5050
# Link libraries
5151
target_link_libraries(${TARGET} PRIVATE
52-
$<LINK_GROUP:RESCAN,miosix-${OPT_BOARD},stdc++,c,m,gcc,atomic>
52+
-Wl,--start-group miosix-${OPT_BOARD} stdc++ c m gcc atomic -Wl,--end-group
5353
)
5454

5555
# Add a post build command to create the hex file to flash on the board

0 commit comments

Comments
 (0)