Skip to content

Commit

Permalink
Always create protobuf_equal
Browse files Browse the repository at this point in the history
* Because currently Paddle only use protobuf 3.
  • Loading branch information
reyoung committed Jan 17, 2017
1 parent ceb2d39 commit a5c1658
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions python/paddle/trainer_config_helpers/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@ add_test(NAME test_reset_hook
${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/test_reset_hook.py
WORKING_DIRECTORY ${PROJ_ROOT}/python/paddle)

if (PROTOBUF_3)
add_paddle_exe(protobuf_equal
ProtobufEqualMain.cpp)
add_test(NAME test_layerHelpers
COMMAND
${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_BINARY_DIR}/protobuf_equal
)
else()
add_test(NAME test_layerHelpers
COMMAND
${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh ${PYTHON_EXECUTABLE}
)
endif()
add_paddle_exe(protobuf_equal
ProtobufEqualMain.cpp)
add_test(NAME test_layerHelpers
COMMAND
${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_BINARY_DIR}/protobuf_equal
)

0 comments on commit a5c1658

Please sign in to comment.