+ add option to switch off precompiled header

This commit is contained in:
wmayer
2018-07-25 20:17:11 +02:00
parent 4c8e7fc7d0
commit 0260370b65
17 changed files with 49 additions and 28 deletions

View File

@@ -47,11 +47,11 @@ SET(Measure_SRCS
${Python_SRCS}
)
if(MSVC)
if(BUILD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" Measure_CPP_SRCS ${Measure_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(Measure PreCompiled.h PreCompiled.cpp Measure_CPP_SRCS)
endif(MSVC)
endif(BUILD_USE_PCH)
# Set special compiler flag to convert a SIGSEV into an exception
# to handle issue #0000478.

View File

@@ -37,6 +37,11 @@
# define MeshExport
#endif
#ifdef FC_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#endif
#ifdef _PreComp_
// standard
@@ -63,4 +68,4 @@
#elif defined(FC_OS_WIN32)
#include <windows.h>
#endif // _PreComp_
#endif
#endif