Author: akhaldi
Date: Sat Jan 7 21:50:10 2012
New Revision: 54868
URL:
http://svn.reactos.org/svn/reactos?rev=54868&view=rev
Log:
[PREFAST]
* Write PREfast defect log to the console. Dedicated to Timo.
Modified:
trunk/reactos/cmake/msvc.cmake
Modified: trunk/reactos/cmake/msvc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/msvc.cmake?rev=54868…
==============================================================================
--- trunk/reactos/cmake/msvc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/msvc.cmake [iso-8859-1] Sat Jan 7 21:50:10 2012
@@ -53,9 +53,13 @@
endif()
if(_PREFAST_)
-message("PREFAST enabled!")
-set(CMAKE_C_COMPILER "prefast cl")
-set(CMAKE_CXX_COMPILER "prefast cl")
+ message("PREFAST enabled!")
+ set(CMAKE_C_COMPILER "prefast cl")
+ set(CMAKE_CXX_COMPILER "prefast cl")
+ set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> ${CMAKE_START_TEMP_FILE}
${CMAKE_CL_NOLOGO} <FLAGS> <DEFINES> /Fo<OBJECT> /Fd<TARGET_PDB>
-c <SOURCE>${CMAKE_END_TEMP_FILE}"
+ "prefast LIST")
+ set(CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER>
${CMAKE_START_TEMP_FILE} ${CMAKE_CL_NOLOGO} <FLAGS> <DEFINES> /TP
/Fo<OBJECT> /Fd<TARGET_PDB> -c <SOURCE>${CMAKE_END_TEMP_FILE}"
+ "prefast LIST")
endif()
set(CMAKE_RC_CREATE_SHARED_LIBRARY ${CMAKE_C_CREATE_SHARED_LIBRARY})