[clblas] 97/125: Modified the logic to copy opencl dependencies on windows to look in the /bin/ directory instead of /lib/

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository clblas.

commit ddd5980ccd2a956db32ab940b04c23d915c63828
Author: Kent Knox <kent.knox at amd>
Date:   Wed Sep 10 12:05:47 2014 -0500

    Modified the logic to copy opencl dependencies on windows to look in the /bin/ directory instead of /lib/
---
 src/tests/copyTestDependencies.cmake.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tests/copyTestDependencies.cmake.in b/src/tests/copyTestDependencies.cmake.in
index d52832f..7e47fc7 100644
--- a/src/tests/copyTestDependencies.cmake.in
+++ b/src/tests/copyTestDependencies.cmake.in
@@ -58,6 +58,11 @@ endif( )
 get_filename_component( openclDir "@OPENCL_LIBRARIES@" PATH )
 
 if( EXISTS "${openclDir}" )
+    if( WIN32 )
+        # On Windows, we need to substitute the lib/ directory for the bin/ directory; the former holds the .lib and the latter holds the .dll
+        STRING( REGEX REPLACE "/lib/" "/bin/" openclDir ${openclDir} )
+    endif( )
+
     list( APPEND depList "${openclDir}" )
 #    message( "openclDir: ${openclDir}" )
 endif( )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list