Skip to content

Commit

Permalink
Check that all_tests target exists before adding dependencies (Autode…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jeziorski authored and murphyeoin committed Aug 26, 2019
1 parent 9086673 commit 982b045
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion usdtransaction/AL/usd/transaction/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ set_tests_properties(${USDTRANSACTION_PYTHON_TEST_NAME}
ENVIRONMENT PYTHONPATH=${CMAKE_BINARY_DIR}/src:$ENV{PYTHONPATH}
)

add_dependencies(all_tests ${USDTRANSACTION_TEST_EXECUTABLE_NAME} ${USDTRANSACTION_PYTHON_LIBRARY_NAME})
if (TARGET all_tests)
add_dependencies(all_tests ${USDTRANSACTION_TEST_EXECUTABLE_NAME} ${USDTRANSACTION_PYTHON_LIBRARY_NAME})
endif()

0 comments on commit 982b045

Please sign in to comment.