import library issue should be fixed with https://github.com/KhronosGroup/OpenCL-ICD-Loader/pull/186
11 lines
558 B
Diff
11 lines
558 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -97,7 +97,7 @@
|
|
|
|
# For mingw-i686 builds only we need a special .def file with stdcall
|
|
# exports. In all other cases we can use a standard .def file.
|
|
- if ((CMAKE_SIZEOF_VOID_P EQUAL 4) AND (MINGW OR MSYS OR CYGWIN))
|
|
+ if ((CMAKE_SIZEOF_VOID_P EQUAL 4) AND (MINGW OR MSYS OR CYGWIN) AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|
list (APPEND OPENCL_ICD_LOADER_SOURCES loader/windows/OpenCL-mingw-i686.def)
|
|
else ()
|
|
list (APPEND OPENCL_ICD_LOADER_SOURCES loader/windows/OpenCL.def)
|