From a1261ce91769449505433e7ecd4288a39738a6f3 Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Wed, 28 Jul 2021 05:48:03 -0400 Subject: Platform/Haiku: Remove the include-once behavior The behavior was added by commit 7ebc1cb2ff (Haiku: Several fixes to platform module, 2013-10-05, v3.0.0-rc1~541^2~3), but was not explained in its commit message. No other platform modules do this. The include-once behavior results in incorrect variables set in some larger projects, e.g. .NET Core, particularly when cross-compiling, `CMAKE_DL_LIBS` being one of these. Remove it. --- Modules/Platform/Haiku.cmake | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Modules/Platform/Haiku.cmake b/Modules/Platform/Haiku.cmake index 7e0af61..b8e3ba6 100644 --- a/Modules/Platform/Haiku.cmake +++ b/Modules/Platform/Haiku.cmake @@ -1,8 +1,3 @@ -# process only once -if(HAIKU) - return() -endif() - set(HAIKU 1) set(UNIX 1) -- cgit v0.12