From ef9944d3b0c4d4122d3ae38031754de4e78bbd34 Mon Sep 17 00:00:00 2001 From: simbit18 <101105604+simbit18@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:07:10 +0100 Subject: [PATCH] [cmake] windows native: fixed FAILED: System.map fixed [1025/1027] Generating System.map FAILED: System.map C:/nuttxgit/nuttx/build/System.map cmd.exe /C "cd /D C:\nuttxgit\nuttx\build && arm-none-eabi-nm nuttx | grep -v '(compiled)|($)|( [aUw] )|(..ng$)|(LASH[RL]DI)' | sort > System.map" --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d541632cd11d8..2f366ac82d041 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -751,7 +751,7 @@ endif() # Generate system map using the compiler toolchain. Conventionally, the tool # which dump symbols are called nm, though, some compiler toolchain may have a # different name. -if(NOT WIN32) +if(NOT CMAKE_HOST_WIN32) add_custom_command( OUTPUT System.map COMMAND