Skip to content

Commit 05fc94e

Browse files
committed
Revert "turn off CGAL while we understand what is wrong with fastjet-contrib"
This reverts commit b9764c3.
1 parent 2079b42 commit 05fc94e

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
- name: Install compiler tools on windows
5050
if: runner.os == 'windows'
5151
run: |
52-
#choco install boost-msvc-14.1
53-
vcpkg.exe install getopt #cgal
52+
choco install boost-msvc-14.1
53+
vcpkg.exe install cgal getopt
5454
5555
- name: Install compiler tools on macOS
5656
if: runner.os == 'macOS'
@@ -79,11 +79,11 @@ jobs:
7979
if: runner.os == 'windows'
8080
run: |
8181
$Env:Path
82-
#$Env:CGAL_DIR = 'C:\vcpkg\packages\cgal_x64-windows\share\cgal'
83-
#$Env:GMP_INC_DIR = 'C:\vcpkg\packages\gmp_x64-windows\include'
84-
#$Env:GMP_LIB_DIR = 'C:\vcpkg\packages\gmp_x64-windows\lib'
85-
#$Env:MPFR_INC_DIR = 'C:\vcpkg\packages\mpfr_x64-windows\include'
86-
#$Env:MPFR_LIB_DIR = 'C:\vcpkg\packages\mpfr_x64-windows\lib'
82+
$Env:CGAL_DIR = 'C:\vcpkg\packages\cgal_x64-windows\share\cgal'
83+
$Env:GMP_INC_DIR = 'C:\vcpkg\packages\gmp_x64-windows\include'
84+
$Env:GMP_LIB_DIR = 'C:\vcpkg\packages\gmp_x64-windows\lib'
85+
$Env:MPFR_INC_DIR = 'C:\vcpkg\packages\mpfr_x64-windows\include'
86+
$Env:MPFR_LIB_DIR = 'C:\vcpkg\packages\mpfr_x64-windows\lib'
8787
#$Env:Boost_DIR = 'C:\vcpkg\packages\boost-cmake_x64-windows\share\boost'
8888
#$Env:boost_headers_DIR = 'C:\vcpkg\packages\boost-headers_x64-windows\share\boost_headers'
8989
#$Env:boost_config_DIR = 'C:\vcpkg\packages\boost-config_x64-windows\share\boost_config'

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ include(FetchContent)
1515

1616
find_package(pybind11 REQUIRED)
1717

18-
#find_package(CGAL)
19-
#if (NOT CGAL_FOUND)
20-
# FetchContent_Declare(CGAL
21-
# GIT_REPOSITORY https://github.com/CGAL/cgal.git
22-
# GIT_TAG v6.0.1
23-
# )
24-
# FetchContent_MakeAvailable(CGAL)
25-
#endif()
18+
find_package(CGAL)
19+
if (NOT CGAL_FOUND)
20+
FetchContent_Declare(CGAL
21+
GIT_REPOSITORY https://github.com/CGAL/cgal.git
22+
GIT_TAG v6.0.1
23+
)
24+
FetchContent_MakeAvailable(CGAL)
25+
endif()
2626

2727
#FetchContent_Declare(fastjet
2828
# SOURCE_DIR ${CMAKE_SOURCE_DIR}/extern/fastjet-core

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ wheel.install-dir = "fastjet"
123123

124124
[tool.scikit-build.cmake.define]
125125
FASTJET_ENABLE_PYTHON = "ON"
126-
FASTJET_ENABLE_CGAL = "OFF"
126+
FASTJET_ENABLE_CGAL = "ON"
127127
FASTJET_PYTHON_PACKAGE_NAME = "_swig"
128128
FASTJET_CUSTOM_PYTHON_INSTALL = "./"
129129
FASTJET_ENABLE_PLUGIN_PXCONE = "OFF"

0 commit comments

Comments
 (0)