Skip to content

Commit ae87963

Browse files
authored
disable the install target by default (#11)
With at least some versions of CMake this is generating an error without the in-flight ICD loader changes.
1 parent 75ff9df commit ae87963

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
-DOpenCL_INCLUDE_DIRS=$GITHUB_WORKSPACE/external/OpenCL-Headers
9797
-DOpenCL_LIBRARIES=${{runner.workspace}}/build_icd_loader/libOpenCL.so
9898
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
99+
-DOPENCL_EXTENSION_LOADER_INSTALL=ON
99100
-DOPENCL_EXTENSION_LOADER_SINGLE_PLATFORM_ONLY=${{matrix.single_platform}}
100101
-DOPENCL_EXTENSION_LOADER_XML_PATH=https://raw.githubusercontent.com/KhronosGroup/OpenCL-Registry/master/xml/cl.xml
101102
$GITHUB_WORKSPACE
@@ -108,6 +109,7 @@ jobs:
108109
-DOpenCL_INCLUDE_DIRS=$GITHUB_WORKSPACE/external/OpenCL-Headers
109110
-DOpenCL_LIBRARIES="${{runner.workspace}}/build_icd_loader/$BUILD_TYPE/OpenCL.lib"
110111
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
112+
-DOPENCL_EXTENSION_LOADER_INSTALL=ON
111113
-DOPENCL_EXTENSION_LOADER_SINGLE_PLATFORM_ONLY=${{matrix.single_platform}}
112114
-DOPENCL_EXTENSION_LOADER_XML_PATH=https://raw.githubusercontent.com/KhronosGroup/OpenCL-Registry/master/xml/cl.xml
113115
$GITHUB_WORKSPACE

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ project(OpenCLExtensionLoader
3232
option (BUILD_SHARED_LIBS "Build shared libs" ON)
3333
option (OPENCL_EXTENSION_LOADER_FORCE_STATIC_LIB "Unconditionally Build a Static Library" ON)
3434
option (OPENCL_EXTENSION_LOADER_SINGLE_PLATFORM_ONLY "Only Support Extensions from a Single OpenCL Platform" OFF)
35-
option (OPENCL_EXTENSION_LOADER_INSTALL "Generate Installation Target" ON)
35+
option (OPENCL_EXTENSION_LOADER_INSTALL "Generate Installation Target" OFF)
3636
option (OPENCL_EXTENSION_LOADER_INCLUDE_GL "Include OpenGL Extension APIs" ON)
3737
option (OPENCL_EXTENSION_LOADER_INCLUDE_EGL "Include EGL Extension APIs" ON)
3838
option (OPENCL_EXTENSION_LOADER_INCLUDE_DX9 "Include DirectX 9 Extension APIs" OFF)

0 commit comments

Comments
 (0)