diff --git a/tools/gold/CMakeLists.txt b/tools/gold/CMakeLists.txt index ceab0e1c02e..07a1e2849b9 100644 --- a/tools/gold/CMakeLists.txt +++ b/tools/gold/CMakeLists.txt @@ -20,7 +20,7 @@ else() gold-plugin.cpp ) - target_link_libraries(LLVMgold LTO) + target_link_libraries(LLVMgold ${cmake_2_8_12_PRIVATE} LTO) endif()