COMP: with visual studio it's no error if link isn't found
Alex
This commit is contained in:
parent
2e56fa4808
commit
58fcc23a47
|
@ -25,10 +25,6 @@ IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
FIND_PROGRAM(CMAKE_LINKER NAMES link PATHS ${_CMAKE_TOOLCHAIN_LOCATION} NO_DEFAULT_PATH)
|
FIND_PROGRAM(CMAKE_LINKER NAMES link PATHS ${_CMAKE_TOOLCHAIN_LOCATION} NO_DEFAULT_PATH)
|
||||||
FIND_PROGRAM(CMAKE_LINKER NAMES link)
|
FIND_PROGRAM(CMAKE_LINKER NAMES link)
|
||||||
|
|
||||||
IF(NOT CMAKE_LINKER)
|
|
||||||
MESSAGE(FATAL_ERROR "Could not find link, please check your installation.")
|
|
||||||
ENDIF(NOT CMAKE_LINKER)
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED(CMAKE_LINKER)
|
MARK_AS_ADVANCED(CMAKE_LINKER)
|
||||||
|
|
||||||
# in all other cases search for ar, ranlib, etc.
|
# in all other cases search for ar, ranlib, etc.
|
||||||
|
|
Loading…
Reference in New Issue