Skip to content

Commit

Permalink
Removed prepending CMAKE_CURRENT_SOURCE_DIR to generated_xdc filename
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Kurc <[email protected]>
  • Loading branch information
mkurc-ant committed Dec 3, 2021
1 parent 8eb5f48 commit cb1b7b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/features/lut/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ add_generic_test(
name lut_ff
board_list testboard testboard_noffmux
sources lut_ff.v
generated_xdc testboard.xdc
generated_xdc ${CMAKE_CURRENT_SOURCE_DIR}/testboard.xdc
)

add_generic_test(
name lut_routethru
board_list testboard_noffmux
sources lut_routethru.v
generated_xdc lut_routethru.xdc
generated_xdc ${CMAKE_CURRENT_SOURCE_DIR}/lut_routethru.xdc
)

add_xc7_validation_test(
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function(add_generic_test)
set(test_name "${name}-${board}")

if(DEFINED generated_xdc)
set(xdc ${CMAKE_CURRENT_SOURCE_DIR}/${generated_xdc})
set(xdc ${generated_xdc})
else()
set(xdc ${CMAKE_CURRENT_SOURCE_DIR}/${prefix}${board}.xdc)
endif()
Expand Down

0 comments on commit cb1b7b9

Please sign in to comment.