restrict some compiler flags to the correct platforms.

This commit is contained in:
suter_a 2020-12-28 18:26:45 +01:00
parent b8d899f67f
commit aa08b40696

View File

@ -163,7 +163,9 @@ if (OpenMP_FOUND)
endif (OpenMP_CXX_LIBRARIES) endif (OpenMP_CXX_LIBRARIES)
endif (OpenMP_FOUND) endif (OpenMP_FOUND)
if (DKS_FOUND) if (DKS_FOUND)
set(DependOnLibs ${DependOnLibs} "-framework OpenCL") if (APPLE)
set(DependOnLibs ${DependOnLibs} "-framework OpenCL")
endif (APPLE)
set(DependOnLibs ${DependOnLibs} "-L ${DKS_LIBRARY_DIR}") set(DependOnLibs ${DependOnLibs} "-L ${DKS_LIBRARY_DIR}")
set(DependOnLibs ${DependOnLibs} ${DKS_LIBRARY}) set(DependOnLibs ${DependOnLibs} ${DKS_LIBRARY})
endif (DKS_FOUND) endif (DKS_FOUND)