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
Original issue reported on code.google.com by
Schoenle...@googlemail.com
on 6 May 2012 at 1:18