From 19b144bdbf1b582e4ad832247bdeee7017d26263 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 13 Nov 2002 15:32:27 -0500 Subject: [PATCH] ENH: move -P flag from cxxflags to the compile line for cxx files --- Modules/Platform/Windows-bcc32.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Platform/Windows-bcc32.cmake b/Modules/Platform/Windows-bcc32.cmake index 582588193..363f5e1de 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 - " @&&|\n-DWIN32 -o -c \n|") + " @&&|\n-DWIN32 -P -o -c \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")