asdlei00 / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

A single .pch file is used by Release and Debug configs causing compiler errors #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In CMakeLists.txt in the main folder, in the macro adding precomiled header 
support, the line
SET(PrecompiledBinary "${CMAKE_CURRENT_BINARY_DIR}/${PrecompiledBasename}.pch")
should be replaced by something like
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${PrecompiledBasename}.pch")
to ensure Release and binary configurations use distinct .pch files.
Otherwise an error occurs when re-compiling after a configuration switch.

Original issue reported on code.google.com by Schoenle...@googlemail.com on 6 May 2012 at 1:18

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 10 May 2012 at 6:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1345.

Original comment by zexspect...@gmail.com on 25 Aug 2012 at 2:06