Skip to content

Commit 6ff15e7

Browse files
committed
Fix CMake config version file name
The version file has to be named <config-file-name>-version, otherwise find_package will not find it and set the version to "unknown". Since the config file is named onemath_sycl_blas-config, name the version file onemath_sycl_blas-config-version.
1 parent 1a4eea1 commit 6ff15e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onemath/sycl/blas/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if((${CMAKE_CXX_COMPILER_ID} STREQUAL "IntelLLVM") AND NOT
113113
endif()
114114

115115
include(CMakePackageConfigHelpers)
116-
set(version_file "${CMAKE_CURRENT_BINARY_DIR}/cmake/onemath_sycl_blas-version.cmake")
116+
set(version_file "${CMAKE_CURRENT_BINARY_DIR}/cmake/onemath_sycl_blas-config-version.cmake")
117117
set(config_file "${CMAKE_CURRENT_BINARY_DIR}/cmake/onemath_sycl_blas-config.cmake")
118118
set(targets_name "onemath_sycl_blas-targets")
119119
write_basic_package_version_file(${version_file}

0 commit comments

Comments
 (0)