Skip to content

Commit

Permalink
link sample with MKL
Browse files Browse the repository at this point in the history
  • Loading branch information
barne856 committed Dec 29, 2023
1 parent 16051a6 commit be7f412
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ if(USE_MKL)
find_package(MKL REQUIRED)
target_compile_options(tests PRIVATE $<TARGET_PROPERTY:MKL::MKL,INTERFACE_COMPILE_OPTIONS>)
target_compile_options(sample PRIVATE $<TARGET_PROPERTY:MKL::MKL,INTERFACE_COMPILE_OPTIONS>)
target_compile_options(sample1 PRIVATE $<TARGET_PROPERTY:MKL::MKL,INTERFACE_COMPILE_OPTIONS>)
target_include_directories(tests PRIVATE $<TARGET_PROPERTY:MKL::MKL,INTERFACE_INCLUDE_DIRECTORIES>)
target_include_directories(sample PRIVATE $<TARGET_PROPERTY:MKL::MKL,INTERFACE_INCLUDE_DIRECTORIES>)
target_include_directories(sample1 PRIVATE $<TARGET_PROPERTY:MKL::MKL,INTERFACE_INCLUDE_DIRECTORIES>)
target_link_libraries(tests PRIVATE $<LINK_ONLY:MKL::MKL>)
target_link_libraries(sample PRIVATE $<LINK_ONLY:MKL::MKL>)
target_link_libraries(sample1 PRIVATE $<LINK_ONLY:MKL::MKL>)
endif()
catch_discover_tests(tests)

0 comments on commit be7f412

Please sign in to comment.