CMake: Corrected detection of `nm'.
authorOscar Fuentes <ofv@wanadoo.es>
Sun, 9 Nov 2008 20:26:31 +0000 (20:26 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Sun, 9 Nov 2008 20:26:31 +0000 (20:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58941 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-config/CMakeLists.txt

index 9f1f2f2d311e45633b68c2b5fd6ad49468d113e2..b4c97ec6b5eca478f66d2742617552eed2c6fdac 100644 (file)
@@ -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}