You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change PRIVATE to PUBLIC for SSE and OPENCL definitions to propagate
them to dependent apps. Fixes failure running `basisu -opencl` when
BASISU_OPENCL is set during config.
* Change INTERFACE to PRIVATE for OpenCL include directory.
basisu_encoder needs this. Apps don't. Fixes build failure on Windows.
* Change INTERFACE to PRIVATE for OpenCL link library. Needed if
basisu_encoder ever becomes a shared library. When it's a static
library, CMake will cause the OpenCL library to be linked to dependent
apps.
* Set BASISU_SUPPORT_OPENCL=0 when OpenCL not configured.
* Make finding OpenCL required for non-Windows when OpenCL configured.
Removes need for later checks, allowing code simplification.
* Use embedded OpenCL stuff if WIN32 not if MSVC to support use with
non-MSVC-front-end compilers.
Copy file name to clipboardExpand all lines: CMakeLists.txt
+28-24Lines changed: 28 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,10 @@ elseif(LINUX)
55
55
find_package(Threads REQUIRED)
56
56
endif()
57
57
58
-
if ((NOTMSVC) AND BASISU_OPENCL)
59
-
# With MSVC builds we use the Khronos lib/include files in the project's "OpenCL" directory, to completely avoid requiring fiddly to install vendor SDK's.
58
+
if ((NOTWIN32) AND BASISU_OPENCL)
59
+
# For Windows builds we use the Khronos lib/include files in the project's "OpenCL" directory, to completely avoid requiring fiddly to install vendor SDK's.
fprintf(stderr, "WARNING: -opencl specified, but OpenCL support was not enabled at compile time! With cmake, use -D OPENCL=1. Falling back to CPU compression.\n");
4676
+
fprintf(stderr, "WARNING: -opencl specified, but OpenCL support was not enabled at compile time! With cmake, use -D BASISU_OPENCL=1. Falling back to CPU compression.\n");
0 commit comments