summaryrefslogtreecommitdiff
path: root/NT_MAKEFILE
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-09-23 21:02:51 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-09-23 21:02:51 +0300
commit6dfa9a2030014cb05655865938b650c3d7a86e05 (patch)
treed202e398392b6189b4e5d7c222448c6913b2c585 /NT_MAKEFILE
parentdaa9f78eed24e9c34364db1447f141869dbdd9e2 (diff)
downloadbdwgc-6dfa9a2030014cb05655865938b650c3d7a86e05.tar.gz
Fix 'unknown option --no-undefined' linker error in cmake script (OS X)
Use check_linker_flag() and LINKER prefix in CMakeLists.txt. This fixes the linker error that "--no-undefined" option is unknown, at least with apple-clang 13.0. * CMakeLists.txt [CMP0057] (CMP0057): Set to NEW. * CMakeLists.txt [$CMAKE_VERSION<3.18.0]: Include CheckLinkerFlag. * CMakeLists.txt [BUILD_SHARED_LIBS] (WL_NO_UNDEFINED_OPT): New variable. * CMakeLists.txt [BUILD_SHARED_LIBS && $CMAKE_VERSION>=3.18.0] (WL_NO_UNDEFINED_OPT): Use "LINKER:" prefix. * CMakeLists.txt [BUILD_SHARED_LIBS && $CMAKE_VERSION>=3.18.0] (HAVE_FLAG_WL_NO_UNDEFINED): Use check_linker_flag(C) instead of check_c_compiler_flag. * CMakeLists.txt [BUILD_SHARED_LIBS && $CMAKE_VERSION<3.13.0] (gc, gccpp, gctba, cord): Use $WL_NO_UNDEFINED_OPT. * CMakeLists.txt [BUILD_SHARED_LIBS && $CMAKE_VERSION>=3.13.0] (gc, gccpp, gctba, cord): Use target_link_options instead of target_link_libraries; remove TODO item.
Diffstat (limited to 'NT_MAKEFILE')
0 files changed, 0 insertions, 0 deletions