summaryrefslogtreecommitdiff
path: root/indra/newview/CMakeLists.txt
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-06-24 22:26:39 +0000
committerMark Palange <palange@lindenlab.com>2008-06-24 22:26:39 +0000
commit12284eee5a508cd80382352c9f6aeb455297a310 (patch)
tree9dacb996cd167b74f5c7d62e296eb5dcfe536de3 /indra/newview/CMakeLists.txt
parent94fb9ee0b84784583ced6b766f7d968f5baff2c2 (diff)
DEV-16958 - added precompiled header support to windows simulator and viewer projects.
Reviewed by Richard
Diffstat (limited to 'indra/newview/CMakeLists.txt')
-rw-r--r--indra/newview/CMakeLists.txt21
1 files changed, 19 insertions, 2 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index 1fa145cc53..29d05cbdbc 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -385,7 +385,6 @@ set(viewer_SOURCE_FILES
llviewerparceloverlay.cpp
llviewerpartsim.cpp
llviewerpartsource.cpp
- llviewerprecompiledheaders.cpp
llviewerregion.cpp
llviewerstats.cpp
llviewertexteditor.cpp
@@ -892,6 +891,24 @@ if (WINDOWS)
llwindebug.h
)
+ # precompiled header configuration
+ # llviewerprecompiledheaders.cpp generates
+ # the .pch file.
+ # All sources added to viewer_SOURCE_FILES
+ # at this point use it.
+ set_source_files_properties(llviewerprecompiledheaders.cpp
+ PROPERTIES
+ COMPILE_FLAGS "/Ycllviewerprecompiledheaders.h"
+ )
+ foreach( src_file ${viewer_SOURCE_FILES} )
+ set_source_files_properties(
+ ${src_file}
+ PROPERTIES
+ COMPILE_FLAGS "/Yullviewerprecompiledheaders.h"
+ )
+ endforeach( src_file ${viewer_SOURCE_FILES} )
+ list(APPEND viewer_SOURCE_FILES llviewerprecompiledheaders.cpp)
+
# Add resource files to the project.
# viewerRes.rc is the only buildable file, but
# the rest are all dependencies of it.
@@ -1304,7 +1321,7 @@ if (WINDOWS)
)
add_dependencies(secondlife-bin copy_win_libs)
-
+
if (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)
add_dependencies(secondlife-bin copy_win_scripts)
endif (EXISTS ${CMAKE_SOURCE_DIR}/copy_win_scripts)