-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#21521) morton-nd: add package_type
* add package_type & simplify test_v1_package * morton-nd: add missing include to cstdint --------- Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
74 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
recipes/morton-nd/all/patches/0001-v3.0.0-fix-include-cstdint.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/include/morton-nd/mortonND_BMI2.h b/include/morton-nd/mortonND_BMI2.h | ||
index b99d2c0..63d89f2 100644 | ||
--- a/include/morton-nd/mortonND_BMI2.h | ||
+++ b/include/morton-nd/mortonND_BMI2.h | ||
@@ -17,6 +17,7 @@ | ||
#include <tuple> | ||
#include <type_traits> | ||
#include <immintrin.h> | ||
+#include <cstdint> | ||
|
||
namespace mortonnd { | ||
|
||
diff --git a/include/morton-nd/mortonND_LUT_encoder.h b/include/morton-nd/mortonND_LUT_encoder.h | ||
index 5d75cb2..575c898 100644 | ||
--- a/include/morton-nd/mortonND_LUT_encoder.h | ||
+++ b/include/morton-nd/mortonND_LUT_encoder.h | ||
@@ -13,6 +13,7 @@ | ||
#include <tuple> | ||
#include <type_traits> | ||
#include <limits> | ||
+#include <cstdint> | ||
|
||
namespace mortonnd { | ||
|
24 changes: 24 additions & 0 deletions
24
recipes/morton-nd/all/patches/0001-v4.0.0-fix-include-cstdint.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/include/morton-nd/mortonND_BMI2.h b/include/morton-nd/mortonND_BMI2.h | ||
index b99d2c0..63d89f2 100644 | ||
--- a/include/morton-nd/mortonND_BMI2.h | ||
+++ b/include/morton-nd/mortonND_BMI2.h | ||
@@ -17,6 +17,7 @@ | ||
#include <tuple> | ||
#include <type_traits> | ||
#include <immintrin.h> | ||
+#include <cstdint> | ||
|
||
namespace mortonnd { | ||
|
||
diff --git a/include/morton-nd/mortonND_LUT.h b/include/morton-nd/mortonND_LUT.h | ||
index 110ad63..fb3777b 100644 | ||
--- a/include/morton-nd/mortonND_LUT.h | ||
+++ b/include/morton-nd/mortonND_LUT.h | ||
@@ -13,6 +13,7 @@ | ||
#include <tuple> | ||
#include <type_traits> | ||
#include <limits> | ||
+#include <cstdint> | ||
|
||
namespace mortonnd { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(test_package LANGUAGES CXX) | ||
cmake_minimum_required(VERSION 3.15) | ||
project(test_package) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(morton-nd REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} ../test_package/test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE morton-nd::MortonND) | ||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14) | ||
if(morton-nd_VERSION VERSION_LESS "4.0.0") | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE "MORTONND_LESS_4_0_0") | ||
endif() | ||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package | ||
${CMAKE_CURRENT_BINARY_DIR}/test_package) |