Fixed: RETURN() doesn't exit from macro but from current file (thanks Nimetu!)
This commit is contained in:
parent
963d07e008
commit
e83b412c9c
1 changed files with 43 additions and 44 deletions
|
@ -380,11 +380,7 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
||||||
ENDMACRO()
|
ENDMACRO()
|
||||||
|
|
||||||
MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
||||||
IF(NOT PCHSupport_FOUND)
|
IF(PCHSupport_FOUND)
|
||||||
MESSAGE(STATUS "PCH disabled because compiler doesn't support them")
|
|
||||||
RETURN()
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
# 0 => creating a new target for PCH, works for all makefiles
|
# 0 => creating a new target for PCH, works for all makefiles
|
||||||
# 1 => setting PCH for VC++ project, works for VC++ projects
|
# 1 => setting PCH for VC++ project, works for VC++ projects
|
||||||
# 2 => setting PCH for XCode project, works for XCode projects
|
# 2 => setting PCH for XCode project, works for XCode projects
|
||||||
|
@ -429,4 +425,7 @@ MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
|
||||||
IF(TARGET ${_targetName}_static)
|
IF(TARGET ${_targetName}_static)
|
||||||
ADD_NATIVE_PRECOMPILED_HEADER(${_targetName}_static ${_inputh} ${_inputcpp})
|
ADD_NATIVE_PRECOMPILED_HEADER(${_targetName}_static ${_inputh} ${_inputcpp})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
ELSE()
|
||||||
|
MESSAGE(STATUS "PCH disabled because compiler doesn't support them")
|
||||||
|
ENDIF()
|
||||||
ENDMACRO()
|
ENDMACRO()
|
||||||
|
|
Loading…
Reference in a new issue