Skip to content

Commit

Permalink
Disable precompiled header by default on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
slipher authored and slipher committed Dec 26, 2018
1 parent a1731c3 commit 14c79c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ option(USE_HARDENING "Use stack protection and other hardening flags" 0)
option(USE_WERROR "Tell the compiler to make the build fail when warnings are present" 0) option(USE_WERROR "Tell the compiler to make the build fail when warnings are present" 0)
option(USE_PEDANTIC "Tell the compiler to be pedantic" 0) option(USE_PEDANTIC "Tell the compiler to be pedantic" 0)
option(USE_DEBUG_OPTIMIZE "Try to optimize the debug build" 1) option(USE_DEBUG_OPTIMIZE "Try to optimize the debug build" 1)
option(USE_PRECOMPILED_HEADER "Improve build times by using a precompiled header" 1) if (APPLE)
# Turn off by default because it is reportedly broken
option(USE_PRECOMPILED_HEADER "Improve build times by using a precompiled header" 0)
else()
option(USE_PRECOMPILED_HEADER "Improve build times by using a precompiled header" 1)
endif()
option(USE_ADDRESS_SANITIZER "Try to use the address sanitizer" 0) option(USE_ADDRESS_SANITIZER "Try to use the address sanitizer" 0)
option(BE_VERBOSE "Tell the compiler to report all warnings" 0) option(BE_VERBOSE "Tell the compiler to report all warnings" 0)
option(USE_STATIC_LIBS "Tries to use static libs where possible. Only works for Linux" 0) option(USE_STATIC_LIBS "Tries to use static libs where possible. Only works for Linux" 0)
Expand Down

0 comments on commit 14c79c0

Please sign in to comment.