CMake: Only consider it INFO is ld.gold is missing

This commit is contained in:
Campbell Barton
2015-05-04 18:33:37 +10:00
parent 4edc9d50fd
commit 7a8170e9c1

View File

@@ -1171,7 +1171,7 @@ if(UNIX AND NOT APPLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fuse-ld=gold") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fuse-ld=gold")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=gold") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=gold")
else () else ()
message(WARNING "GNU gold linker isn't available, using the default system linker.") message(INFO "GNU gold linker isn't available, using the default system linker.")
endif () endif ()
unset(LD_VERSION) unset(LD_VERSION)