Skip to content

Commit

Permalink
revert some
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Mar 16, 2024
1 parent 54ee0cc commit 1df57a5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/coro_rpc/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows"
target_link_libraries(coro_rpc_benchmark_client wsock32 ws2_32)
endif()

# if (GENERATE_BENCHMARK_DATA)
# add_executable(coro_rpc_benchmark_data_gen data_gen.cpp)
# if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows") # mingw-w64
# target_link_libraries(coro_rpc_benchmark_data_gen wsock32 ws2_32)
# endif()
# target_compile_definitions(coro_rpc_benchmark_data_gen PRIVATE GENERATE_BENCHMARK_DATA)
# add_custom_command(
# TARGET coro_rpc_benchmark_data_gen POST_BUILD
# COMMAND ./coro_rpc_benchmark_data_gen
# COMMENT "generate benchmark data"
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/output/benchmark
# VERBATIM
# )
# endif ()
if (GENERATE_BENCHMARK_DATA)
add_executable(coro_rpc_benchmark_data_gen data_gen.cpp)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows") # mingw-w64
target_link_libraries(coro_rpc_benchmark_data_gen wsock32 ws2_32)
endif()
target_compile_definitions(coro_rpc_benchmark_data_gen PRIVATE GENERATE_BENCHMARK_DATA)
add_custom_command(
TARGET coro_rpc_benchmark_data_gen POST_BUILD
COMMAND ./coro_rpc_benchmark_data_gen
COMMENT "generate benchmark data"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/output/benchmark
VERBATIM
)
endif ()

0 comments on commit 1df57a5

Please sign in to comment.