diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2019-02-12 19:45:07 +0100 |
---|---|---|
committer | Kevin Funk <kevin.funk@kdab.com> | 2019-02-13 11:48:02 +0000 |
commit | f0d6fd6b9586de778a56056b4950c2b92f5e2b88 (patch) | |
tree | 3263685b35630308d1d41905de848e59ef2c282c /cmake | |
parent | 35a17f194199a72376042451588ae974124e9143 (diff) |
cmake: Also use -Wl,--no-undefined for Clang
Change-Id: Ida6bf41e496a0e800f1146d15edf192d0635a3c9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index db5b13a291..37da7ac43e 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -588,7 +588,7 @@ function(add_qt_module target) ### fixme: cmake is missing a built-in variable for this. We want to apply it only to modules and plugins # that belong to Qt. - if (GCC) + if (GCC OR CLANG) qt_internal_add_link_flags("${target}" "-Wl,--no-undefined") endif() @@ -674,7 +674,7 @@ function(add_qt_plugin target) ### fixme: cmake is missing a built-in variable for this. We want to apply it only to modules and plugins # that belong to Qt. - if (GCC) + if (GCC OR CLANG) qt_internal_add_link_flags("${target}" "-Wl,--no-undefined") endif() |