Skip to content

Commit

Permalink
AMDGCN hasher library fixes for CLRX libraries not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanadnan committed Jan 12, 2019
1 parent 4ed92ba commit e919ea0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,12 @@ if(NOT WITHOUT_OPENCL)
LIBRARY_OUTPUT_DIRECTORY modules
)
target_compile_definitions(amdgcn_hasher PRIVATE EXPORT_SYMBOLS=1)
target_link_libraries(amdgcn_hasher hasher CLRXCLHelper CLRXAmdAsm
CLRXAmdBin CLRXUtils)
set_property(TARGET CLRXCLHelperStatic PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET CLRXAmdAsmStatic PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET CLRXAmdBinStatic PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET CLRXUtilsStatic PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(amdgcn_hasher hasher CLRXCLHelperStatic CLRXAmdAsmStatic
CLRXAmdBinStatic CLRXUtilsStatic ${OpenCL_LIBRARY})
add_dependencies(ariominer amdgcn_hasher)
endif()
endif()
Expand Down

0 comments on commit e919ea0

Please sign in to comment.