From: Martin Quinson Date: Fri, 7 Oct 2016 21:11:47 +0000 (+0200) Subject: some old linkers (as on Mac) don't like --version X-Git-Tag: v3_14~358 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/44b0a6669fc2b71eaa8651adbaab19f94d62a1fd?hp=1edc4b49d2bd41d6bf941f8d7fe2e6378fc9e432 some old linkers (as on Mac) don't like --version --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c9da4ada3..d7ea965a0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,7 +130,7 @@ else() endif() endif() -execute_process(COMMAND ${CMAKE_LINKER} --version OUTPUT_VARIABLE LINKER_VERSION) +execute_process(COMMAND ${CMAKE_LINKER} -version OUTPUT_VARIABLE LINKER_VERSION) string(REGEX MATCH "[0-9].[0-9]*" LINKER_VERSION "${LINKER_VERSION}") ### Find programs and paths