forked from qt-creator/qt-creator
Qt Creator CMakeAPI: do not set -undefined on Apple
It gives a warning saying that -undefined is deprecated. Change-Id: I9652b4dab1838d3e6eca9f719efbb18ffccf7a89 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -193,7 +193,7 @@ endfunction()
|
|||||||
|
|
||||||
function(qtc_add_link_flags_no_undefined target)
|
function(qtc_add_link_flags_no_undefined target)
|
||||||
# needs CheckLinkerFlags
|
# needs CheckLinkerFlags
|
||||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18 AND NOT MSVC)
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18 AND NOT MSVC AND NOT APPLE)
|
||||||
set(no_undefined_flag "-Wl,--no-undefined")
|
set(no_undefined_flag "-Wl,--no-undefined")
|
||||||
check_linker_flag(CXX ${no_undefined_flag} QTC_LINKER_SUPPORTS_NO_UNDEFINED)
|
check_linker_flag(CXX ${no_undefined_flag} QTC_LINKER_SUPPORTS_NO_UNDEFINED)
|
||||||
if (NOT QTC_LINKER_SUPPORTS_NO_UNDEFINED)
|
if (NOT QTC_LINKER_SUPPORTS_NO_UNDEFINED)
|
||||||
|
Reference in New Issue
Block a user