Skip to content

Commit

Permalink
try another approach
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Dec 8, 2024
1 parent c7a0197 commit 56be4d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,8 @@ elseif(${S2_SOURCE} STREQUAL "SYSTEM")
endif()
endif()

# This is needed so the openssl header files included via s2geometry are found
# even when s2geometry is installed in another prefix path (e.g., current CI
# builds of spherely python wheels).
# --- OpenSSL
find_package(OpenSSL REQUIRED)
target_include_directories(${s2_NOALIAS_TARGET}
INTERFACE ${OPENSSL_INCLUDE_DIR})

# --- Abseil (bundled build not supported)

Expand Down Expand Up @@ -261,6 +257,10 @@ target_include_directories(
s2geography
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>
# This is needed so the openssl header files included via s2geometry
# are found even when s2geometry is installed in another prefix path
# (e.g., current CI builds of spherely python wheels).
$<INSTALL_INTERFACE:${OPENSSL_INCLUDE_DIR}>
PRIVATE src/vendored)

target_compile_definitions(
Expand Down

0 comments on commit 56be4d4

Please sign in to comment.