Skip to content

Commit d98c828

Browse files
author
Michal J. Gajda
committed
FIX: No need for -lOpenCL on Windows.
I also fixed compilation problems that happened in Win7, where GHC cannot find the library.
1 parent c5a826a commit d98c828

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

OpenCL.cabal

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ Library
5858
Frameworks: OpenCL
5959

6060
if os(windows)
61-
cpp-options: -DCALLCONV=stdcall
61+
cpp-options: -DCALLCONV=stdcall -Iinclude
62+
include-dirs: include
63+
ghc-options: -lOpenCL
64+
ld-options: -lOpenCL
65+
-- NOTE: extra-libraries: OpenCL seems to fail without finding library!
66+
-- NOTE: include-dirs without -Iinclude seems to fail too with GHC 7.4.1!
67+
6268

6369
Test-suite tests
6470
type: exitcode-stdio-1.0

0 commit comments

Comments
 (0)