Skip to content

Commit ddd5980

Browse files
author
Kent Knox
committed
Modified the logic to copy opencl dependencies on windows to look in the /bin/ directory instead of /lib/
1 parent d2a2963 commit ddd5980

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tests/copyTestDependencies.cmake.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ endif( )
5858
get_filename_component( openclDir "@OPENCL_LIBRARIES@" PATH )
5959

6060
if( EXISTS "${openclDir}" )
61+
if( WIN32 )
62+
# On Windows, we need to substitute the lib/ directory for the bin/ directory; the former holds the .lib and the latter holds the .dll
63+
STRING( REGEX REPLACE "/lib/" "/bin/" openclDir ${openclDir} )
64+
endif( )
65+
6166
list( APPEND depList "${openclDir}" )
6267
# message( "openclDir: ${openclDir}" )
6368
endif( )

0 commit comments

Comments
 (0)