Skip to content

Commit 584991a

Browse files
committed
Use ArrayFire import target in CMake
1 parent 7320d86 commit 584991a

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

CMakeLists.txt

+3-10
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,14 @@ target_sources(afml
2424

2525
target_include_directories(afml
2626
PUBLIC
27-
${ArrayFire_INCLUDE_DIRS}
28-
${CMAKE_CURRENT_SOURCE_DIR}/include
29-
)
27+
${CMAKE_CURRENT_SOURCE_DIR}/include)
3028

31-
target_link_libraries(afml
32-
PUBLIC
33-
af
34-
)
29+
target_link_libraries(afml PUBLIC ArrayFire::af)
3530

3631
set_target_properties(afml
3732
PROPERTIES
3833
VERSION "${ArrayFireML_VERSION}"
3934
SOVERSION "${ArrayFireML_VERSION_MAJOR}"
40-
CXX_STANDARD 11
41-
)
42-
35+
CXX_STANDARD 11)
4336

4437
add_subdirectory(examples)

0 commit comments

Comments
 (0)