Skip to content

Commit

Permalink
fixed find_package failure in cmake (#27)
Browse files Browse the repository at this point in the history
* fixed find_package failure in cmake (min version does not work for major version number increments)

* version increment
  • Loading branch information
ntrost57 authored Nov 29, 2018
1 parent d0d6ac9 commit fe08aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ option(BUILD_VERBOSE "Output additional build information" OFF)
include(cmake/Dependencies.cmake)

# Setup version
rocm_setup_version(VERSION 1.0.0.0 NO_GIT_TAG_VERSION)
rocm_setup_version(VERSION 1.0.1.0 NO_GIT_TAG_VERSION)
set(hipsparse_SOVERSION 0)

# hipSPARSE library
Expand Down
2 changes: 1 addition & 1 deletion cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ find_package(HIP 1.5.18353 REQUIRED CONFIG PATHS /opt/rocm) # ROCm 1.9

# Either rocSPARSE or cuSPARSE is required
if(NOT BUILD_CUDA)
find_package(rocsparse 0.1.4 REQUIRED) # ROCm 1.9
find_package(rocsparse 1.0.0 REQUIRED) # ROCm 1.9
else()
find_package(CUDA REQUIRED)
endif()
Expand Down

0 comments on commit fe08aa7

Please sign in to comment.