CMake: Corrected detection of `nm'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Oscar Fuentes 2008-11-09 20:26:31 +00:00
parent 3ab40ca3d5
commit 63b27a61f8

View 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}