Skip to content

Commit

Permalink
added v4 guard to v4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
rfbird committed Dec 13, 2017
1 parent 96b5e10 commit 5cf660e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ if(ENABLE_UNIT_TESTS)
include_directories(${TEST_DIR})

# Add tests individually
add_executable(v4 src/util/v4/test/v4.cc)
add_test(NAME v4 COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 1 ${MPIEXEC_PREFLAGS} ./v4)
if (USE_V4)
add_executable(v4 src/util/v4/test/v4.cc)
add_test(NAME v4 COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 1 ${MPIEXEC_PREFLAGS} ./v4)
endif(USE_V4)

endif(ENABLE_UNIT_TESTS)
#~---------------------------------------------------------------------------~-#
Expand Down

0 comments on commit 5cf660e

Please sign in to comment.