Skip to content

Commit 96b23c5

Browse files
committed
Strip "v" prefix from version for find_package
1 parent c4740ef commit 96b23c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/dependencies/pybind11.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ file(READ "${pyAMReX_SOURCE_DIR}/dependencies.json" dependencies_data)
6262
string(JSON pybind11_version GET "${dependencies_data}" version_pybind11)
6363
string(JSON pybind11_commit GET "${dependencies_data}" commit_pybind11)
6464

65+
# Strip "v" prefix from version for find_package
66+
string(REGEX REPLACE "^v" "" pybind11_version "${pybind11_version}")
67+
6568
set(pyAMReX_pybind11_branch ${pybind11_commit}
6669
CACHE STRING
6770
"Repository branch for pyAMReX_pybind11_repo if(pyAMReX_pybind11_internal)")

0 commit comments

Comments
 (0)