Skip to content

Commit

Permalink
Build EncryptedRecordBench in CMakeLists.txt examples
Browse files Browse the repository at this point in the history
Summary:
Build `EncryptedRecordBench` under `BUILD_EXAMPLES`.

Extra: don't link sodium to `BogoShim` and `FizzTool` as sodium is already publicly linked to `fizz`.

Reviewed By: knekritz

Differential Revision: D68347294

fbshipit-source-id: baf4787d01edd1deb8d83c4d3942d2f29bad4f8a
  • Loading branch information
Jolene Tan authored and facebook-github-bot committed Jan 21, 2025
1 parent 8bdef37 commit f5b877c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions fizz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ option(BUILD_EXAMPLES "BUILD_EXAMPLES" ON)

if(BUILD_EXAMPLES)
add_executable(BogoShim test/BogoShim.cpp)
target_link_libraries(BogoShim fizz sodium)
target_link_libraries(BogoShim fizz)
set_target_properties(BogoShim PROPERTIES OUTPUT_NAME fizz-bogoshim)
install(
TARGETS BogoShim
Expand All @@ -428,10 +428,19 @@ if(BUILD_EXAMPLES)
tool/FizzGenerateDelegatedCredentialCommand.cpp
tool/FizzServerBenchmarkCommand.cpp
tool/FizzServerCommand.cpp)
target_link_libraries(FizzTool fizz sodium)
target_link_libraries(FizzTool fizz)
set_target_properties(FizzTool PROPERTIES OUTPUT_NAME fizz)
install(
TARGETS FizzTool
DESTINATION ${BIN_INSTALL_DIR}
)
add_executable(EncryptedRecordBench record/test/EncryptedRecordBench.cpp)
target_link_libraries(EncryptedRecordBench fizz Folly::follybenchmark)
set_target_properties(
EncryptedRecordBench PROPERTIES OUTPUT_NAME fizz-encryptedrecordbench
)
install(
TARGETS EncryptedRecordBench
DESTINATION ${BIN_INSTALL_DIR}
)
endif()

0 comments on commit f5b877c

Please sign in to comment.