cmake: don't forbid undefined symbols on openbsd

This commit is contained in:
selsta 2021-07-28 01:17:40 +02:00
parent 960376b960
commit 055657241d
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -234,7 +234,9 @@ add_library(l3 OBJECT incorrect_source.cpp)
file(REMOVE_RECURSE "${TEST_PROJECT}")
endforeach()
endfunction()
forbid_undefined_symbols()
if (NOT (CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*"))
forbid_undefined_symbols()
endif()
if (MINGW)
function(export_all_symbols)