mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
Set host C++ compiler CMake var.
This commit is contained in:
parent
2c34a10aa2
commit
6222c74235
4
third-party/CMakeLists.txt
vendored
4
third-party/CMakeLists.txt
vendored
@ -97,6 +97,8 @@ else()
|
||||
set(DEPS_C_COMPILER "${CMAKE_C_COMPILER}")
|
||||
endif()
|
||||
|
||||
set(DEPS_CXX_COMPILER "${CMAKE_CXX_COMPILER}")
|
||||
|
||||
if(CMAKE_OSX_SYSROOT)
|
||||
set(DEPS_C_COMPILER "${DEPS_C_COMPILER} -isysroot${CMAKE_OSX_SYSROOT}")
|
||||
endif()
|
||||
@ -110,11 +112,13 @@ if(CMAKE_CROSSCOMPILING AND NOT UNIX)
|
||||
set(HOSTDEPS_BIN_DIR "${HOSTDEPS_INSTALL_DIR}/bin")
|
||||
set(HOSTDEPS_LIB_DIR "${HOSTDEPS_INSTALL_DIR}/lib")
|
||||
set(HOSTDEPS_C_COMPILER "${HOST_C_COMPILER}")
|
||||
set(HOSTDEPS_CXX_COMPILER "${HOST_CXX_COMPILER}")
|
||||
else()
|
||||
set(HOSTDEPS_INSTALL_DIR "${DEPS_INSTALL_DIR}")
|
||||
set(HOSTDEPS_BIN_DIR "${DEPS_BIN_DIR}")
|
||||
set(HOSTDEPS_LIB_DIR "${DEPS_LIB_DIR}")
|
||||
set(HOSTDEPS_C_COMPILER "${DEPS_C_COMPILER}")
|
||||
set(HOSTDEPS_CXX_COMPILER "${DEPS_CXX_COMPILER}")
|
||||
endif()
|
||||
|
||||
include(ExternalProject)
|
||||
|
Loading…
Reference in New Issue
Block a user