Skip to content

Commit

Permalink
Fix YCM_INSTALL_DIR when YCM_EP_INSTALL_DIR is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Sep 30, 2020
1 parent 5899f05 commit 6fce3dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/YCMBootstrap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ if(NOT ycm_POPULATED)
set(_quiet_args )
endif()

set(YCM_INSTALL_DIR "${CMAKE_BINARY_DIR}/install")
# FIXME Where is YCM_EP_INSTALL_DIR defined?
if (DEFINED YCM_EP_INSTALL_DIR)
set(YCM_INSTALL_DIR ${YCM_INSTALL_DIR})
else()
set(YCM_INSTALL_DIR "${CMAKE_BINARY_DIR}/install")
endif()

execute_process(
COMMAND ${CMAKE_COMMAND} ${build_generator} -S${ycm_SOURCE_DIR} -B${ycm_BINARY_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${YCM_INSTALL_DIR}
Expand Down

0 comments on commit 6fce3dc

Please sign in to comment.