This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
modify s2 library dependence #129
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9b6ad37
modify s2 library dependence
acelyc111 cc6b974
Merge branch 'master' into master
acelyc111 5434469
exit 2
acelyc111 56db6a5
Merge branch 'master' of github.com:acelyc111/rdsn
acelyc111 5cf4889
Merge branch 'master' into master
acelyc111 fdd520b
fix
acelyc111 1fc5792
Merge branch 'master' of github.com:acelyc111/rdsn
acelyc111 8c8a7af
s2 lib
acelyc111 a7f1584
Merge branch 'master' into master
acelyc111 fdd6024
add new line
acelyc111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ | |
|
||
#include <dsn/utility/absl/base/internal/invoke.h> | ||
|
||
namespace dsn { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 同上
|
||
namespace absl { | ||
|
||
// integer_sequence | ||
|
@@ -200,5 +201,6 @@ auto apply(Functor &&functor, Tuple &&t) -> decltype(utility_internal::apply_hel | |
std::tuple_size<typename std::remove_reference<Tuple>::type>::value>{}); | ||
} | ||
} // namespace absl | ||
} // namespace dsn | ||
|
||
#endif // ABSL_UTILITY_UTILITY_H_ | ||
This comment was marked as resolved.
Sorry, something went wrong. |
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 |
---|---|---|
|
@@ -30,6 +30,6 @@ | |
|
||
namespace dsn { | ||
|
||
using ::absl::apply; | ||
using absl::apply; | ||
|
||
} // namespace dsn |
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
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,62 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index c6b40ee..1f1efe8 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1,4 +1,4 @@ | ||
-cmake_minimum_required(VERSION 3.1) | ||
+cmake_minimum_required(VERSION 2.8.12) | ||
project(s2-geometry) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
include(CMakeDependentOption) | ||
@@ -21,7 +21,8 @@ option(BUILD_SHARED_LIBS "Build shared libraries instead of static." ON) | ||
add_feature_info(SHARED_LIBS BUILD_SHARED_LIBS | ||
"builds shared libraries instead of static.") | ||
|
||
-option(BUILD_EXAMPLES "Build s2 documentation examples." ON) | ||
+option(BUILD_EXAMPLES "Build s2 documentation examples." OFF) | ||
+option(BUILD_PYTHON "Build python interfaces." OFF) | ||
|
||
feature_summary(WHAT ALL) | ||
|
||
@@ -58,7 +59,12 @@ if (APPLE) | ||
set(CMAKE_MACOSX_RPATH TRUE) | ||
endif() | ||
|
||
-set(CMAKE_CXX_STANDARD 11) | ||
+if (CMAKE_VERSION VERSION_LESS "3.1") | ||
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | ||
+else() | ||
+ set (CMAKE_CXX_STANDARD 11) | ||
+endif() | ||
+ | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
# No compiler-specific extensions, i.e. -std=c++11, not -std=gnu++11. | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
@@ -85,6 +91,11 @@ endif() | ||
include_directories( | ||
${GFLAGS_INCLUDE_DIRS} ${GLOG_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} | ||
${PYTHON_INCLUDE_DIRS}) | ||
+message("GTEST_INCLUDE: ${GTEST_INCLUDE}") | ||
+if (GTEST_INCLUDE) | ||
+ include_directories(${GTEST_INCLUDE}) | ||
+endif() | ||
+ | ||
include_directories(src) | ||
|
||
add_library(s2 | ||
@@ -404,6 +415,7 @@ install(FILES src/s2/util/units/length-units.h | ||
src/s2/util/units/physical-units.h | ||
DESTINATION include/s2/util/units) | ||
install(TARGETS s2 DESTINATION lib) | ||
+install(TARGETS s2testing DESTINATION lib) | ||
|
||
message("GTEST_ROOT: ${GTEST_ROOT}") | ||
if (GTEST_ROOT) | ||
@@ -526,6 +538,6 @@ if (BUILD_EXAMPLES) | ||
add_subdirectory("doc/examples" examples) | ||
endif() | ||
|
||
-if (${SWIG_FOUND} AND ${PYTHONLIBS_FOUND}) | ||
+if (BUILD_PYTHON AND ${SWIG_FOUND} AND ${PYTHONLIBS_FOUND}) | ||
add_subdirectory("src/python" python) | ||
endif() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里加个注释