cmake: Fix CMake package files not being installed on FreeBSD

By default libraries and their CMake package files should be installed
on Linux and FreeBSD and omitted on Windows. This explicitly adds
FreeBSD.
This commit is contained in:
PatTheMav
2022-09-17 16:12:01 -07:00
committed by Jim
parent 76c782bcdc
commit e64b1117fc
+1 -1
View File
@@ -238,7 +238,7 @@ endfunction()
function(export_target target)
set(CMAKE_EXPORT_PACKAGE_REGISTRY OFF)
if(OS_LINUX)
if(OS_LINUX OR OS_FREEBSD)
set(_EXCLUDE "")
else()
set(_EXCLUDE "EXCLUDE_FROM_ALL")