From d6bbf36578528aebec0199bda051a7605f46fd7c Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Wed, 21 Nov 2018 23:22:59 +0100 Subject: CMake: Do not override CMAKE__LINK_EXECUTABLE variables Despite the misleading name they are actually supposed to hold the "rule" to link an executable (i.e. the full linker command line) and not just the linker executable name. CMake already defaults to the CMAKE__COMPILER for the latter. --- CMakeScripts/ConfigEnv.cmake | 2 -- 1 file changed, 2 deletions(-) (limited to 'CMakeScripts') diff --git a/CMakeScripts/ConfigEnv.cmake b/CMakeScripts/ConfigEnv.cmake index 4a3300d50..131e62450 100644 --- a/CMakeScripts/ConfigEnv.cmake +++ b/CMakeScripts/ConfigEnv.cmake @@ -12,9 +12,7 @@ if(WIN32) endif() set(CMAKE_C_COMPILER "${MINGW_BIN}/gcc.exe") - set(CMAKE_C_LINK_EXECUTABLE "${MINGW_BIN}/gcc.exe") set(CMAKE_CXX_COMPILER "${MINGW_BIN}/g++.exe") - set(CMAKE_CXX_LINK_EXECUTABLE "${MINGW_BIN}/g++.exe") set(CMAKE_CXX_STANDARD 11) # Setup Windows resource files compiler. -- cgit v1.2.3