Skip to content

Commit

Permalink
update pybind version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schindler committed Feb 16, 2025
1 parent a9cd4bd commit 6184595
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
cmake_minimum_required(VERSION 3.10.2)

project(nnpycgal)

include(CheckIncludeFileCXX)
check_include_file_cxx("cstdint" HAVE_CSTDINT)
if(NOT HAVE_CSTDINT)
message(FATAL_ERROR "C++ compiler must support <cstdint>")
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

Expand All @@ -13,7 +18,7 @@ include(FetchContent)
FetchContent_Declare(
pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11
GIT_TAG v2.6.2
GIT_TAG v2.11.1
)
FetchContent_MakeAvailable(pybind11)

Expand All @@ -25,3 +30,8 @@ pybind11_add_module(nninterpol ${SOURCE_DIR}/nninterpol.cpp)

find_package(CGAL CONFIG REQUIRED)
target_link_libraries(nninterpol PRIVATE CGAL::CGAL)

target_compile_definitions(nninterpol PRIVATE
-D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
)
3 changes: 3 additions & 0 deletions src/nnpycgal/nninterpol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

#include <cstdint>
#include <stdint.h>

#include <omp.h>

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
Expand Down

0 comments on commit 6184595

Please sign in to comment.