Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
kboyarinov authored Aug 30, 2024
1 parent 134c135 commit 786ccb1
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,3 @@ foreach (_file IN LISTS UNIT_TESTS)
endif()

endforeach()

# add additional TUs if required
if (TARGET interop_allocs.pass)
target_sources(interop_allocs.pass PRIVATE "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/memory/interop_allocs_system.cpp"
"${CMAKE_CURRENT_LIST_DIR}/pstl_offload/memory/interop_allocs_usm.cpp")
endif()

# we want to test configurations when our dynamic library loaded before pstloffload as well as after pstloffload
if (TARGET free_after_unload.pass)
add_library(free_after_unload_lib SHARED "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/general/free_after_unload_lib.cpp")
target_include_directories(free_after_unload_lib PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
target_link_libraries(free_after_unload.pass PRIVATE free_after_unload_lib)
endif()

if (TARGET free_after_unload.pass.after_pstl_offload)
if (NOT TARGET free_after_unload_lib)
add_library(free_after_unload_lib SHARED "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/general/free_after_unload_lib.cpp")
target_include_directories(free_after_unload_lib PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
endif()
target_link_libraries(free_after_unload.pass.after_pstl_offload PRIVATE pstloffload free_after_unload_lib)
endif()

0 comments on commit 786ccb1

Please sign in to comment.