Skip to content

Commit 2e5bd8f

Browse files
committed
fix: portability issues with Windows
1 parent 3085741 commit 2e5bd8f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sketchbook/1_Blink/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ cmake_minimum_required(VERSION 3.21)
33
# STEP 1: set up bases of environment
44
# -----------------------------------------------------------------------------
55

6-
list(APPEND CMAKE_MODULE_PATH "$ENV{HOME}/Arduino_Core_STM32/cmake")
6+
file(REAL_PATH "~/Arduino_Core_STM32" CORE_PATH EXPAND_TILDE)
7+
file(TO_CMAKE_PATH "${CORE_PATH}" CORE_PATH)
8+
9+
list(APPEND CMAKE_MODULE_PATH ${CORE_PATH}/cmake)
10+
set(CMAKE_TOOLCHAIN_FILE toolchain)
11+
712
set(CMAKE_TOOLCHAIN_FILE toolchain)
813

914
project("Blink_project")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy