Skip to content

Commit

Permalink
cmake: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
clementperon committed Jul 20, 2024
1 parent cbe2c02 commit 6de7a7b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,9 @@ if(PCAPPP_BUILD_REPRODUCIBLE)
endif()
elseif(MSVC)
message(FATAL_ERROR "Unsupported with MSVC compiler")
# Try to build a reproducible static library with MSVC doesn't work
# but this option should make it work for shared libraries or executables.
# add_compile_options(/Brepro)
# add_compile_options(/experimental:deterministic)
# add_link_options(/Brepro)
# add_link_options(/experimental:deterministic)
# add_link_options(/INCREMENTAL:NO)
# Try to build a reproducible static library with MSVC doesn't work but this option should make it work for shared
# libraries or executables. add_compile_options(/Brepro) add_compile_options(/experimental:deterministic)
# add_link_options(/Brepro) add_link_options(/experimental:deterministic) add_link_options(/INCREMENTAL:NO)
else()
# We should not use __DATE__ nor __TIME__ in case of reproducible build
add_compile_options(-Wdate-time)
Expand Down

0 comments on commit 6de7a7b

Please sign in to comment.