cmake: Log compiler flag at check time.
Output the flag being checked before checking the flag to make it easier to determine exactly which check failed. Change-Id: I692f5287f985acb4a3061dd54f7c5a8729def83b
This commit is contained in:
parent
8bb68c2b3e
commit
5cf549f582
@ -11,6 +11,7 @@ include(CheckCXXCompilerFlag)
|
||||
|
||||
function (add_cxx_flag_if_supported cxx_flag)
|
||||
unset(FLAG_SUPPORTED CACHE)
|
||||
message("Checking compiler flag support for: " ${cxx_flag})
|
||||
CHECK_CXX_COMPILER_FLAG("${cxx_flag}" FLAG_SUPPORTED)
|
||||
if (FLAG_SUPPORTED)
|
||||
set(CMAKE_CXX_FLAGS "${cxx_flag} ${CMAKE_CXX_FLAGS}" CACHE STRING "" FORCE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user