Skip to content

Commit cba43d0

Browse files
authored
Merge pull request #971 from Geode-solutions/fix/deps-v15
feat(Build): add install symlink into build
2 parents 9b17d50 + 7cb2244 commit cba43d0

File tree

8 files changed

+27
-15
lines changed

8 files changed

+27
-15
lines changed

cmake/ConfigureAsync++.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ ExternalProject_Add(asyncplusplus
2525
SOURCE_DIR ${ASYNCPLUSPLUS_PATH}/src
2626
BINARY_DIR ${ASYNCPLUSPLUS_PATH}/build
2727
STAMP_DIR ${ASYNCPLUSPLUS_PATH}/stamp
28-
GIT_REPOSITORY https://github.com/Amanieu/asyncplusplus
29-
GIT_TAG 756893feb9e69c098225d5a454a668a2c139e4be
28+
GIT_REPOSITORY https://github.com/Geode-solutions/asyncplusplus
29+
GIT_TAG 20240711
30+
GIT_SHALLOW ON
3031
GIT_PROGRESS ON
3132
CMAKE_GENERATOR ${CMAKE_GENERATOR}
3233
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}

cmake/ConfigureBitsery.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ ExternalProject_Add(bitsery
2626
BINARY_DIR ${BITSERY_PATH}/build
2727
STAMP_DIR ${BITSERY_PATH}/stamp
2828
GIT_REPOSITORY https://github.com/Geode-solutions/bitsery
29-
GIT_TAG 4292ba7645f15f3870914f4ecbbacd499c6924ac
29+
GIT_TAG 20240711
30+
GIT_SHALLOW ON
3031
GIT_PROGRESS ON
3132
CMAKE_GENERATOR ${CMAKE_GENERATOR}
3233
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}

cmake/ConfigureMinizip.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ ExternalProject_Add(minizip
2525
SOURCE_DIR ${MINIZIP_PATH}/src
2626
BINARY_DIR ${MINIZIP_PATH}/build
2727
STAMP_DIR ${MINIZIP_PATH}/stamp
28-
GIT_REPOSITORY https://github.com/nmoinvaz/minizip
29-
GIT_TAG f3d400e999056ca290998b3fd89cc5a74e4b8b58
28+
GIT_REPOSITORY https://github.com/zlib-ng/minizip-ng
29+
GIT_TAG 4.0.7
30+
GIT_SHALLOW ON
3031
GIT_PROGRESS ON
3132
CMAKE_GENERATOR ${CMAKE_GENERATOR}
3233
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}
3334
CMAKE_ARGS
3435
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
3536
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
3637
-DCMAKE_INSTALL_MESSAGE=LAZY
38+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
3739
-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}
3840
CMAKE_CACHE_ARGS
3941
-DMZ_COMPAT:BOOL=OFF

cmake/ConfigureNanoflann.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ExternalProject_Add(nanoflann
2626
BINARY_DIR ${NANOFLANN_PATH}/build
2727
STAMP_DIR ${NANOFLANN_PATH}/stamp
2828
GIT_REPOSITORY https://github.com/jlblancoc/nanoflann
29-
GIT_TAG v1.3.2
29+
GIT_TAG v1.5.5
3030
GIT_SHALLOW ON
3131
GIT_PROGRESS ON
3232
CMAKE_GENERATOR ${CMAKE_GENERATOR}

cmake/ConfigureOpenGeode.cmake

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,15 @@ add_custom_target(download
9191
)
9292
if(OPENGEODE_WITH_PYTHON OR INCLUDE_PYBIND11)
9393
add_dependencies(download pybind11-download)
94-
endif()
94+
endif()
95+
96+
add_custom_target(post_install
97+
ALL
98+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${OpenGeode_PATH_INSTALL}/bin ${PROJECT_BINARY_DIR}/bin
99+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${OpenGeode_PATH_INSTALL}/lib ${PROJECT_BINARY_DIR}/lib
100+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${OpenGeode_PATH_INSTALL}/cmake ${PROJECT_BINARY_DIR}/cmake
101+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${OpenGeode_PATH_INSTALL}/include ${PROJECT_BINARY_DIR}/include
102+
DEPENDS
103+
opengeode)
104+
105+
install(DIRECTORY ${OpenGeode_PATH_INSTALL}/ DESTINATION .)

cmake/SuperBuild.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ endif()
6565

6666
include(${PROJECT_SOURCE_DIR}/cmake/ConfigureOpenGeode.cmake)
6767

68-
install(DIRECTORY ${OpenGeode_PATH_INSTALL}/ DESTINATION .)
69-
7068
#------------------------------------------------------------------------------------------------
7169
# Configure CPack
7270
set(CPACK_PACKAGE_NAME OpenGeode)

src/geode/basic/zip_file.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace geode
5757
Impl( std::string_view file, std::string_view archive_temp_filename )
5858
{
5959
directory_ = create_directory( file, archive_temp_filename );
60-
mz_zip_writer_create( &writer_ );
60+
writer_ = mz_zip_writer_create();
6161
mz_zip_writer_set_compress_method(
6262
writer_, MZ_COMPRESS_METHOD_STORE );
6363
const auto status = mz_zip_writer_open_file(
@@ -135,7 +135,7 @@ namespace geode
135135
Impl( std::string_view file, std::string_view unarchive_temp_filename )
136136
{
137137
directory_ = create_directory( file, unarchive_temp_filename );
138-
mz_zip_reader_create( &reader_ );
138+
reader_ = mz_zip_reader_create();
139139
const auto status =
140140
mz_zip_reader_open_file( reader_, to_string( file ).c_str() );
141141
OPENGEODE_EXCEPTION(
@@ -199,8 +199,7 @@ namespace geode
199199

200200
bool is_zip_file( std::string_view file )
201201
{
202-
void* reader{ nullptr };
203-
mz_zip_reader_create( &reader );
202+
void* reader = mz_zip_reader_create();
204203
const auto status =
205204
mz_zip_reader_open_file( reader, to_string( file ).c_str() );
206205
mz_zip_reader_close( reader );

src/geode/geometry/nn_search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ namespace geode
6060
const Point< dimension >& point,
6161
const double threshold_distance ) const
6262
{
63-
std::vector< std::pair< index_t, double > > results;
64-
nanoflann::SearchParams params;
63+
std::vector< nanoflann::ResultItem< index_t, double > > results;
64+
nanoflann::SearchParameters params;
6565
params.sorted = true;
6666
const auto nb_results = nn_tree_.radiusSearch( &copy( point )[0],
6767
threshold_distance * threshold_distance, results, params );

0 commit comments

Comments
 (0)