mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Provide fallback value for test_core_dir in case it hasn't been built yet.
This commit is contained in:
parent
fbb172d096
commit
c9f3c0760c
@ -1,6 +1,10 @@
|
||||
|
||||
IF (WITH_PYTHON)
|
||||
find_path(test_core_dir "unittest_support.py" PATHS ${CMAKE_BINARY_DIR}/common/test-core ${CMAKE_SOURCE_DIR}/common/test-core)
|
||||
if (${test_core_dir} STREQUAL "test_core_dir-NOTFOUND")
|
||||
# Because it hasn't been built yet
|
||||
set(test_core_dir ${CMAKE_BINARY_DIR}/common/test-core)
|
||||
endif()
|
||||
add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py)
|
||||
add_dependencies(check test-python-bindings)
|
||||
ADD_TEST(python-bindings ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/runTests.py.in)
|
||||
|
Loading…
Reference in New Issue
Block a user