diff --git a/internal-modules/YCMVersion.cmake b/internal-modules/YCMVersion.cmake index 9037bf61..a1905c59 100644 --- a/internal-modules/YCMVersion.cmake +++ b/internal-modules/YCMVersion.cmake @@ -32,7 +32,7 @@ include(GitInfo) set(YCM_VERSION_MAJOR 0) set(YCM_VERSION_MINOR 16) -set(YCM_VERSION_PATCH 5) +set(YCM_VERSION_PATCH 6) set(YCM_VERSION_API "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}") set(YCM_VERSION_SHORT "${YCM_VERSION_MAJOR}.${YCM_VERSION_MINOR}.${YCM_VERSION_PATCH}") diff --git a/modules/YCMEPHelper.cmake b/modules/YCMEPHelper.cmake index 0a294b1f..19b567a8 100644 --- a/modules/YCMEPHelper.cmake +++ b/modules/YCMEPHelper.cmake @@ -490,9 +490,15 @@ function(_YCM_EP_ADD_STATUS_STEP _name) get_property(_yeph_NO_DEPENDS GLOBAL PROPERTY _yeph_NO_DEPENDS) get_property(_yeph_INDEPENDENT GLOBAL PROPERTY _yeph_INDEPENDENT) + if(CMAKE_GENERATOR STREQUAL "Unix Makefiles") + set(_command_echo_color_if_supported cmake_echo_color --switch=$\(COLOR\) --cyan) + else() + set(_command_echo_color_if_supported "echo") + endif() + ExternalProject_Get_Property(${_name} source_dir) ExternalProject_Add_Step(${_name} status - COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --switch=$(COLOR) --cyan "Working directory: ${source_dir}" + COMMAND ${CMAKE_COMMAND} -E ${_command_echo_color_if_supported} "Working directory: ${source_dir}" ${_cmd} WORKING_DIRECTORY ${source_dir} DEPENDEES download @@ -693,17 +699,23 @@ function(_YCM_EP_ADD_PRINT_DIRECTORIES_STEP _name) get_property(_yeph_NO_DEPENDS GLOBAL PROPERTY _yeph_NO_DEPENDS) get_property(_yeph_INDEPENDENT GLOBAL PROPERTY _yeph_INDEPENDENT) + if(CMAKE_GENERATOR STREQUAL "Unix Makefiles") + set(_command_echo_color_if_supported "cmake_echo_color --switch=$\(COLOR\) --cyan") + else() + set(_command_echo_color_if_supported "echo") + endif() + if("${_source_dir}" STREQUAL "${_source_subdir}") - set(_source_cmd COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --switch=$(COLOR) --cyan "${_name} SOURCE directory: " + set(_source_cmd COMMAND ${CMAKE_COMMAND} -E ${_command_echo_color_if_supported} "${_name} SOURCE directory: " COMMAND ${CMAKE_COMMAND} -E echo " ${_source_dir}") else() - set(_source_cmd COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --switch=$(COLOR) --cyan "${_name} REPOSITORY directory: " + set(_source_cmd COMMAND ${CMAKE_COMMAND} -E ${_command_echo_color_if_supported} "${_name} REPOSITORY directory: " COMMAND ${CMAKE_COMMAND} -E echo " ${_source_dir}" COMMAND ${CMAKE_COMMAND} -E echo "" - COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --switch=$(COLOR) --cyan "${_name} SOURCE directory: " + COMMAND ${CMAKE_COMMAND} -E ${_command_echo_color_if_supported} "${_name} SOURCE directory: " COMMAND ${CMAKE_COMMAND} -E echo " ${_source_subdir}") endif() - set(_binary_cmd COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --switch=$(COLOR) --cyan "${_name} BINARY directory: " + set(_binary_cmd COMMAND ${CMAKE_COMMAND} -E ${_command_echo_color_if_supported} "${_name} BINARY directory: " COMMAND ${CMAKE_COMMAND} -E echo " ${_binary_dir}") ExternalProject_Add_Step(${_name} print-directories