Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit abbffc8

Browse files
author
Sven Verdoolaege
committed
let tc_core and test_basic depend on generate_isl when building isl bindings
This ensures that the bindings are built before tc_core and test_basic (which need those bindings) are compiled.
1 parent a9057d9 commit abbffc8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tc/core/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ target_link_libraries(
4848
tc_version
4949
tc_proto
5050
)
51+
if (WITH_BINDINGS)
52+
add_dependencies(tc_core generate_isl)
53+
endif()
5154
install(
5255
TARGETS
5356
tc_core

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
1313
add_executable(test_basic test_basic.cc)
1414
add_test(test_basic test_basic)
1515
target_link_libraries(test_basic ${GOOGLE_LIBRARIES} ${ISL_LIBRARIES} ${ATEN_LIBRARIES} pthread)
16+
if (WITH_BINDINGS)
17+
add_dependencies(test_basic generate_isl)
18+
endif()
1619

1720
################################################################################
1821
# Core library only tests

0 commit comments

Comments
 (0)