+ add option to switch off precompiled header
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user