CMake: Fix non-PCH build.

This commit is contained in:
Snapper
2016-06-09 00:18:31 +02:00
parent 17f7b7eed2
commit c6efc0acfa

View File

@@ -12,6 +12,10 @@
# This to stop a few silly crashes that could have been avoided IF people
# weren't doing some -O3 psychooptimizations etc.
include_directories(
${Boost_INCLUDE_DIR}
)
if(CMAKE_COMPILER_IS_GNUCXX AND NOT MINGW)
add_definitions(-fno-delete-null-pointer-checks)
endif()