aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/llvm-config/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt
index 9f1f2f2d31..b4c97ec6b5 100644
--- a/tools/llvm-config/CMakeLists.txt
+++ b/tools/llvm-config/CMakeLists.txt
@@ -67,8 +67,10 @@ if( CMAKE_CROSSCOMPILING )
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
endif()
+find_program(NM_PATH nm PATH_SUFFIXES /bin)
+
if( NOT NM_PATH )
- message(FATAL_ERROR "`nm' was not found")
+ message(FATAL_ERROR "`nm' not found")
endif()
add_custom_command(OUTPUT ${LIBDEPS_TMP}