Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ mark_as_advanced(
CUDA_rt_LIBRARY
CMAKE_CUDA_HOST_COMPILER)

if(APPLE)
find_package(X11 REQUIRED)
if(X11_FOUND AND NOT TARGET X11::x11)
add_library(X11::x11 UNKNOWN IMPORTED)
set_target_properties(X11::x11 PROPERTIES
IMPORTED_LINK_INTERFACE_LANGUAGE "C"
IMPORTED_LOCATION "${X11_X11_LIB}"
INTEFACE_INCLUDE_DIRECTORIES "${X11_INCLUDE_DIR}")
endif()
endif()

include(CMakeParseArguments)
include(CMakeDependentOption)
include(InternalUtils)
Expand Down Expand Up @@ -100,8 +89,7 @@ function(add_example target_name source backend)
target_link_libraries(${target}
OSCompileFlags
Forge::forge
${arg_LIBRARIES}
$<$<PLATFORM_ID:Darwin>:X11::x11>)
${arg_LIBRARIES})
endfunction()

add_subdirectory(cpu)
Expand Down
1 change: 1 addition & 0 deletions examples/opencl/cl_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define CL_HPP_ENABLE_EXCEPTIONS
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_TARGET_OPENCL_VERSION 120

#if defined(__GNUC__)
#pragma GCC diagnostic push
Expand Down