Skip to content

Commit

Permalink
Fix absolute paths issue on Windows (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerStAmour authored Jul 5, 2024
1 parent 36223d1 commit c6b1cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/cmake/generate_cubemx.mk
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ AUTOGEN_CUBEMX = ON
CUBEMX_GEN_SCRIPT = cubemx_script.txt

# Get the directory of this file since it is called from other locations
BUILD_SYS_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
CUSTOM_TARGETS_FILE = $(BUILD_SYS_DIR)/custom_cubemx_targets.mk
BUILD_SYS_DIR:=$(dir $(MAKEFILE_LIST))
CUSTOM_TARGETS_FILE = $(BUILD_SYS_DIR)custom_cubemx_targets.mk

# Copy the CubeMX makefile and custom targets into a new makefile
CustomMakefile.mk: Makefile $(CUSTOM_TARGETS_FILE)

0 comments on commit c6b1cc6

Please sign in to comment.