|
|
|
@ -159,6 +159,7 @@ ENDMACRO(ADD_PRECOMPILED_HEADER_TO_TARGET)
|
|
|
|
|
|
|
|
|
|
MACRO(ADD_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
|
|
|
|
|
|
|
|
|
IF(WITH_PCH)
|
|
|
|
|
SET(_PCH_current_target ${_targetName})
|
|
|
|
|
|
|
|
|
|
IF(NOT CMAKE_BUILD_TYPE)
|
|
|
|
@ -211,10 +212,13 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
ADD_PRECOMPILED_HEADER_TO_TARGET(${_targetName} ${_inputh} ${_output} ${_dowarn})
|
|
|
|
|
ENDIF(WITH_PCH)
|
|
|
|
|
|
|
|
|
|
ENDMACRO(ADD_PRECOMPILED_HEADER)
|
|
|
|
|
|
|
|
|
|
MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
|
|
|
|
|
|
|
|
|
IF(WITH_PCH)
|
|
|
|
|
IF( "${ARGN}" STREQUAL "0")
|
|
|
|
|
SET(_dowarn 0)
|
|
|
|
|
ELSE( "${ARGN}" STREQUAL "0")
|
|
|
|
@ -261,5 +265,6 @@ MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
|
|
|
|
ADD_PRECOMPILED_HEADER(${_targetName} ${_inputh} ${_inputcpp} ${_dowarn})
|
|
|
|
|
endif(CMAKE_GENERATOR MATCHES Xcode)
|
|
|
|
|
endif(CMAKE_GENERATOR MATCHES Visual*)
|
|
|
|
|
ENDIF(WITH_PCH)
|
|
|
|
|
|
|
|
|
|
ENDMACRO(ADD_NATIVE_PRECOMPILED_HEADER)
|
|
|
|
|