Skip to content

Commit 587f7e7

Browse files
committed
cmake: Ask clang to not add pch-timestamp
1 parent 9136abd commit 587f7e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindings/python/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ function(PINOCCHIO_PYTHON_BINDINGS_SPECIFIC_TYPE scalar_name)
6262
# * -Wcomment as latex equations have multi-line comments.
6363
# * -Wself-assign-overloaded as bp::self operations trigger this (Clang only).
6464
cxx_flags_by_compiler_frontend(
65-
GNU -Wno-conversion -Wno-comment -Wno-self-assign-overloaded
65+
GNU -Wno-conversion -Wno-comment -Wno-self-assign-overloaded -Xclang=-fno-pch-timestamp
66+
MSVC -Xclang=-fno-pch-timestamp
6667
OUTPUT PRIVATE_OPTIONS
6768
FILTER)
6869
target_compile_options(${PYTHON_LIB_NAME} PRIVATE ${PRIVATE_OPTIONS})

0 commit comments

Comments
 (0)