2011-05-23 Ryuan Choi <ryuan.choi@samsung.com>
[WebKit-https.git] / Source / cmake / OptionsCommon.cmake
1 ADD_DEFINITIONS(-DBUILDING_WITH_CMAKE=1)
2 ADD_DEFINITIONS(-DHAVE_CONFIG_H=1)
3
4 IF (WTF_OS_UNIX)
5     ADD_DEFINITIONS(-DXP_UNIX)
6 ENDIF (WTF_OS_UNIX)
7
8 IF (MSVC)
9     SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} /nologo /EP")
10 ELSE ()
11     SET(CODE_GENERATOR_PREPROCESSOR "${CMAKE_CXX_COMPILER} -E -P -x c++")
12 ENDIF ()