CMake: Rename cpp compile check to HAVE_DASH_UNDEFINED_SYMBOLS
It used to be called HAVE_DASH_UNDEFINED_ERROR, but that always cause Coin to print the compile check as the first build error snippet because it contains the word "error", and whenever you get emails from Gerrit the first snippet is always this compile check. Rename it to avoid confusion in emails and Coin status reports. Change-Id: I5487623abf9df177b100d2b45635688504f0e25a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
f9940b15f7
commit
1e1e6e288a
@ -1411,8 +1411,8 @@ function(qt_internal_add_link_flags_no_undefined target)
|
||||
set(previous_CMAKE_REQUIRED_LINK_OPTIONS ${CMAKE_REQUIRED_LINK_OPTIONS})
|
||||
|
||||
set(CMAKE_REQUIRED_LINK_OPTIONS "-Wl,-undefined,error")
|
||||
check_cxx_source_compiles("int main() {}" HAVE_DASH_UNDEFINED_ERROR)
|
||||
if(HAVE_DASH_UNDEFINED_ERROR)
|
||||
check_cxx_source_compiles("int main() {}" HAVE_DASH_UNDEFINED_SYMBOLS)
|
||||
if(HAVE_DASH_UNDEFINED_SYMBOLS)
|
||||
set(no_undefined_flag "-Wl,-undefined,error")
|
||||
endif()
|
||||
|
||||
@ -1424,7 +1424,7 @@ function(qt_internal_add_link_flags_no_undefined target)
|
||||
|
||||
set(CMAKE_REQUIRED_LINK_OPTIONS ${previous_CMAKE_REQUIRED_LINK_OPTIONS})
|
||||
|
||||
if (NOT HAVE_DASH_UNDEFINED_ERROR AND NOT HAVE_DASH_DASH_NO_UNDEFINED)
|
||||
if (NOT HAVE_DASH_UNDEFINED_SYMBOLS AND NOT HAVE_DASH_DASH_NO_UNDEFINED)
|
||||
message(FATAL_ERROR "Platform linker doesn't support erroring upon encountering undefined symbols. Target:\"${target}\".")
|
||||
endif()
|
||||
target_link_options("${target}" PRIVATE "${no_undefined_flag}")
|
||||
|
Loading…
Reference in New Issue
Block a user