From 4b11a4321b6b58c0f9635e81745b3f47583dd120 Mon Sep 17 00:00:00 2001 From: cyy Date: Sat, 10 Oct 2020 06:16:50 +0800 Subject: [PATCH] fix freebsd build --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bc281f5..7805a8c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,7 +183,7 @@ if(CMakePythonDistributions_SUPERBUILD) endforeach() set(_common_args ) - if(UNIX AND NOT APPLE) + if(UNIX AND (NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")) # Since CMAKE_C_FLAGS and CMAKE_EXE_LINKER_FLAGS arguments contain spaces, we generate an initial # cache file. file(WRITE "${CMAKE_BINARY_DIR}/initial-cache.txt"