Skip to content

Commit f5df552

Browse files
illwieckzslipher
authored andcommitted
cmake: disable precompiled headers on macOS
1 parent d825f50 commit f5df552

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ option(USE_WERROR "Tell the compiler to make the build fail when warnings are pr
132132
option(USE_PEDANTIC "Tell the compiler to be pedantic" OFF)
133133
option(USE_DEBUG_OPTIMIZE "Try to optimize the debug build" ON)
134134

135-
if (CMAKE_GENERATOR MATCHES "^Ninja")
135+
if (CMAKE_GENERATOR MATCHES "^Ninja" OR APPLE)
136136
# It isn't currently supported with Ninja yet:
137137
#
138138
# > Note that the IMPLICIT_DEPENDS option is currently supported only for
@@ -143,6 +143,9 @@ if (CMAKE_GENERATOR MATCHES "^Ninja")
143143
#
144144
# It would be better to be able to know if IMPLICIT_DEPENDS is supported
145145
# by the current generator instead of comparing generator name.
146+
147+
# It is broken on macOS.
148+
# See: https://github.com/DaemonEngine/Daemon/issues/1549
146149
option(USE_PRECOMPILED_HEADER "Improve build times by using a precompiled header" OFF)
147150
else()
148151
option(USE_PRECOMPILED_HEADER "Improve build times by using a precompiled header" ON)

0 commit comments

Comments
 (0)