summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Hamilton <jessica.l.hamilton@gmail.com>2021-07-28 09:48:03 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-29 12:42:46 (GMT)
commita1261ce91769449505433e7ecd4288a39738a6f3 (patch)
tree206697a6af874e97695bda974723db9e199d59f6
parentb880867e5aa4037d5fca4c3aafa82ffe60d18dfa (diff)
downloadCMake-a1261ce91769449505433e7ecd4288a39738a6f3.zip
CMake-a1261ce91769449505433e7ecd4288a39738a6f3.tar.gz
CMake-a1261ce91769449505433e7ecd4288a39738a6f3.tar.bz2
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.
-rw-r--r--Modules/Platform/Haiku.cmake5
1 files changed, 0 insertions, 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)