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
1 changed files with 3 additions and 1 deletions

View File

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