mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-07-15 19:05:44 +02:00
Fixed a linking issue with the tuners on Visual Studio
This commit is contained in:
parent
9683b50c55
commit
2d665099ef
|
@ -221,9 +221,15 @@ if(TUNERS)
|
||||||
# Includes CLTune
|
# Includes CLTune
|
||||||
include_directories(${CLTUNE_INCLUDE_DIRS})
|
include_directories(${CLTUNE_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
# Visual Studio requires the sources of non-exported objects/libraries
|
||||||
|
set(TUNERS_COMMON )
|
||||||
|
if(MSVC)
|
||||||
|
set(TUNERS_COMMON ${TUNERS_COMMON} src/utilities.cpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Adds tuning executables
|
# Adds tuning executables
|
||||||
foreach(KERNEL ${KERNELS})
|
foreach(KERNEL ${KERNELS})
|
||||||
add_executable(clblast_tuner_${KERNEL} src/tuning/kernels/${KERNEL}.cpp)
|
add_executable(clblast_tuner_${KERNEL} ${TUNERS_COMMON} src/tuning/kernels/${KERNEL}.cpp)
|
||||||
target_link_libraries(clblast_tuner_${KERNEL} clblast ${CLTUNE_LIBRARIES} ${OPENCL_LIBRARIES})
|
target_link_libraries(clblast_tuner_${KERNEL} clblast ${CLTUNE_LIBRARIES} ${OPENCL_LIBRARIES})
|
||||||
install(TARGETS clblast_tuner_${KERNEL} DESTINATION bin)
|
install(TARGETS clblast_tuner_${KERNEL} DESTINATION bin)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Reference in a new issue