Skip to content

Commit

Permalink
Remove PCH CMake prologue so warning can get through
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou committed Jan 21, 2025
1 parent 71d2359 commit f76f5b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/config/pch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
file(WRITE "${PROJECT_BINARY_DIR}/doc_pch.cpp" "int main() {}\n" )
file(TOUCH "${PROJECT_BINARY_DIR}/test_pch.cpp" )

## Let warnings come out even when PCH is setup
set(CMAKE_PCH_PROLOGUE "")

add_executable(bench_pch $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/doc_pch.cpp> )
add_executable(test_pch $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/test_pch.cpp> )
add_executable(doc_pch $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/doc_pch.cpp> )
Expand Down

0 comments on commit f76f5b2

Please sign in to comment.