Skip to content

Commit

Permalink
Fix pybind iterator bug on newer g++ (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffburdick authored Jun 3, 2024
1 parent 70686b4 commit 8190458
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmake/GetPyBind11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@
# // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# /////////////////////////////////////////////////////////////////////////////////
function(find_and_configure_pybind11 VERSION)
function(find_and_configure_pybind11)
CPMFindPackage(NAME pybind11
VERSION ${VERSION}
GIT_REPOSITORY /~https://github.com/pybind/pybind11.git
GIT_TAG v${VERSION}
GIT_SHALLOW TRUE)
GIT_TAG a5b9e50)

if(pybind11_FOUND)
set(pybind11_FOUND TRUE PARENT_SCOPE)
endif()
endfunction()

set(CUDA_MATX_MIN_VERSION_pybind11 2.12.0)
set(CUDA_MATX_MIN_VERSION_pybind11)
find_and_configure_pybind11(${CUDA_MATX_MIN_VERSION_pybind11})

0 comments on commit 8190458

Please sign in to comment.