Correct scope when setting default c and cxx compiler for darwin.
@@ -250,13 +250,13 @@ function(vespa_use_default_cxx_compiler)
endif()
if(VESPA_COMPILER_VARIANT STREQUAL "gcc")
if(APPLE)
- set(DEFAULT_CMAKE_C_COMPILER "/usr/local/bin/gcc-9" PARENT_SCOPE)
- set(DEFAULT_CMAKE_CXX_COMPILER "/usr/local/bin/g++-9" PARENT_SCOPE)
+ set(DEFAULT_CMAKE_C_COMPILER "/usr/local/bin/gcc-9")
+ set(DEFAULT_CMAKE_CXX_COMPILER "/usr/local/bin/g++-9")
endif()
elseif(VESPA_COMPILER_VARIANT STREQUAL "clang")
if(APPLE)
- set(DEFAULT_CMAKE_C_COMPILER, "/usr/local/opt/llvm/bin/clang" PARENT_SCOPE)
- set(DEFAULT_CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang++" PARENT_SCOPE)
+ set(DEFAULT_CMAKE_C_COMPILER, "/usr/local/opt/llvm/bin/clang")
+ set(DEFAULT_CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang++")
elseif(VESPA_OS_DISTRO STREQUAL "fedora")
set(DEFAULT_CMAKE_C_COMPILER "/usr/bin/clang")
set(DEFAULT_CMAKE_CXX_COMPILER "/usr/bin/clang++")
@@ -265,8 +265,8 @@ function(vespa_use_default_cxx_compiler)
endif()
elseif(VESPA_COMPILER_VARIANT STREQUAL "appleclang")
if(APPLE)
- set(DEFAULT_CMAKE_C_COMPILER "/usr/bin/clang" PARENT_SCOPE)
- set(DEFAULT_CMAKE_CXX_COMPILER "/usr/bin/clang++" PARENT_SCOPE)
+ set(DEFAULT_CMAKE_C_COMPILER "/usr/bin/clang")
+ set(DEFAULT_CMAKE_CXX_COMPILER "/usr/bin/clang++")
else()
message(FATAL_ERROR "-- appleclang compiler variant not supported for ${VESPA_OS_DISTRO_COMBINED}")
endif()
