summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-11-13 20:32:27 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-11-13 20:32:27 (GMT)
commit19b144bdbf1b582e4ad832247bdeee7017d26263 (patch)
tree448b51cb2b13e91b65218ac201f9b69a568febd7 /Modules
parent2905d39689a23c580b3356f668ad02397424f09e (diff)
downloadCMake-19b144bdbf1b582e4ad832247bdeee7017d26263.zip
CMake-19b144bdbf1b582e4ad832247bdeee7017d26263.tar.gz
CMake-19b144bdbf1b582e4ad832247bdeee7017d26263.tar.bz2
ENH: move -P flag from cxxflags to the compile line for cxx files
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-bcc32.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-bcc32.cmake b/Modules/Platform/Windows-bcc32.cmake
index 5825881..363f5e1 100644
--- a/Modules/Platform/Windows-bcc32.cmake
+++ b/Modules/Platform/Windows-bcc32.cmake
@@ -28,7 +28,7 @@ SET(CMAKE_C_CREATE_STATIC_LIBRARY ${CMAKE_CXX_CREATE_STATIC_LIBRARY})
# compile a C++ file into an object file
SET(CMAKE_CXX_COMPILE_OBJECT
- "<CMAKE_CXX_COMPILER> @&&|\n-DWIN32 -o<OBJECT> <FLAGS> -c <SOURCE>\n|")
+ "<CMAKE_CXX_COMPILER> @&&|\n-DWIN32 -P -o<OBJECT> <FLAGS> -c <SOURCE>\n|")
# compile a C file into an object file
SET(CMAKE_C_COMPILE_OBJECT
@@ -50,7 +50,7 @@ SET(CMAKE_CREATE_WIN32_EXE -tW -tWM )
# extra flags for a console app
SET(CMAKE_CREATE_CONSOLE_EXE -tWC )
-SET (CMAKE_CXX_FLAGS_INIT "-w- -whid -waus -wpar -tWM -P")
+SET (CMAKE_CXX_FLAGS_INIT "-w- -whid -waus -wpar -tWM")
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-Od -v")
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O1")
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2")