Compare commits

..

No commits in common. "42db4201e768d83d32a559e87deed946487361fc" and "9c22c16d9bc2d8c9a071fc45082022e9fc3ca1c9" have entirely different histories.

2 changed files with 8 additions and 8 deletions

View File

@ -8,11 +8,11 @@ macro(CHECK_ENABLE_CXX_FLAG flag)
unset(CMAKE_REQUIRED_QUIET)
if(CHECK_CXX_FLAG)
myx_cmake_message_notice("'${flag}': flag is supported.")
message(STATUS "'${flag}': flag is supported.")
string(CONCAT _MYX_CMAKE_DETECTED_CXX_FLAGS
"${_MYX_CMAKE_DETECTED_CXX_FLAGS} ${flag}")
else()
myx_cmake_message_status("'${flag}': flag is NOT supported.")
message(STATUS "'${flag}': flag is NOT supported.")
endif()
# NOTE: check_cxx_compiler stores variables in the cache.
unset(CHECK_CXX_FLAG CACHE)

View File

@ -2,12 +2,12 @@ find_program(DISTCC_EXECUTABLE distcc)
mark_as_advanced(DISTCC_EXECUTABLE)
if(DISTCC_EXECUTABLE)
foreach(lang C CXX)
# cmake-format: off
if(NOT DEFINED CMAKE_${lang}_COMPILER_LAUNCHER AND
NOT CMAKE_${lang}_COMPILER MATCHES ".*/distcc$")
myx_cmake_message("MyxCMake: distcc enabled for ${lang}")
set(CMAKE_${lang}_COMPILER_LAUNCHER ${DISTCC_EXECUTABLE} CACHE STRING "")
if(NOT DEFINED CMAKE_${lang}_COMPILER_LAUNCHER
AND NOT CMAKE_${lang}_COMPILER MATCHES ".*/distcc$")
message(STATUS "MyxCMake: distcc enabled for ${lang}")
set(CMAKE_${lang}_COMPILER_LAUNCHER
${DISTCC_EXECUTABLE}
CACHE STRING "")
endif()
# cmake-format: on
endforeach()
endif()