cmake: don't forbid undefined symbols on openbsd

This commit is contained in:
selsta 2021-07-28 01:17:40 +02:00
parent 8b63bb3c75
commit 7128f73ec2
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -155,7 +155,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)