Core/Build: Handle USE_SCRIPTPCH cmake flag when SCRIPTS flag is set to FALSE

Don't ignore USE_SCRIPTPCH cmake flag if SCRIPTS is set to FALSE; in this case "script" project has only source files related to scripted spells and command scripts and it must be built with precompiled headers if USE_SCRIPTPCH flag is set. This partially reverts 780ed1b01c .
This commit is contained in:
jackpoz
2013-10-04 21:18:18 +02:00
parent f8fb6d6a58
commit d897b55e9b

View File

@@ -28,7 +28,6 @@ if( SCRIPTS )
add_definitions(-DSCRIPTS)
else()
message("* Build with scripts : No")
set(USE_SCRIPTPCH 0)
endif()
if( TOOLS )