mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 10:37:41 -04:00
Be smarter about Pch.[h|cpp] files
As pointed out in #225, Pch.cpp looks suspiciously like a garbage file when precompiled headers are disabled in cmake. To solve that, I have changed the precompiled header function to add the Pch source files only when pch is enabled. This should prevent future accidents.
This commit is contained in:
@ -19,7 +19,6 @@ set(pfPython_SOURCES
|
||||
cyParticleSys.cpp
|
||||
cyPhysics.cpp
|
||||
cyPythonInterface.cpp
|
||||
Pch.cpp
|
||||
plPythonFileMod.cpp
|
||||
plPythonPack.cpp
|
||||
plPythonSDLModifier.cpp
|
||||
@ -105,7 +104,6 @@ set(pfPython_HEADERS
|
||||
cyParticleSys.h
|
||||
cyPhysics.h
|
||||
cyPythonInterface.h
|
||||
Pch.h
|
||||
pfPythonCreatable.h
|
||||
plPythonFileMod.h
|
||||
plPythonHelpers.h
|
||||
@ -340,7 +338,7 @@ set(pfPython_GAMES
|
||||
${pfPython_VSYNC}
|
||||
)
|
||||
|
||||
use_precompiled_header(Pch.h Pch.cpp)
|
||||
use_precompiled_header(Pch.h Pch.cpp pfPython_HEADERS pfPython_SOURCES)
|
||||
add_library(pfPython STATIC ${pfPython_SOURCES} ${pfPython_HEADERS} ${pfPython_GLUE} ${pfPython_GAME_GLUE} ${pfPython_GAMES})
|
||||
|
||||
source_group("Source Files" FILES ${pfPython_SOURCES})
|
||||
|
Reference in New Issue
Block a user