This repository was archived by the owner on May 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Enable folly #293
Merged
Merged
Enable folly #293
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
07b9210
Enable folly by default
kurapov-peter 0f5b6d6
Propagate ENABLE_FOLLY definition to python code
alexbaden 902c559
Use default memory settings for smoke test
alexbaden 889f49b
[tmp] disable large buffers tests
alexbaden 67b86ee
Disable hdk sanity_test job and rename smoke -> sanity
alexbaden d28c8f3
Fixup folly linking
alexbaden 3b215c5
Conditionally skip large buffer tests on small memory actions instances
alexbaden 7a7b2be
Use modern cmake targets for folly
alexbaden 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
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 |
---|---|---|
|
@@ -49,6 +49,10 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) | |
"Debug" "Release" "MinSizeRel" "RelWithDebInfo") | ||
endif () | ||
|
||
# External Dependencies | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules") | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/omniscidb/cmake/Modules") | ||
|
||
set(ENABLE_CONDA OFF) | ||
if(DEFINED ENV{CONDA_PREFIX}) | ||
set(ENABLE_CONDA ON) | ||
|
@@ -83,6 +87,25 @@ configure_file( | |
) | ||
include_directories(${CMAKE_BINARY_DIR}) | ||
|
||
# Folly | ||
option(ENABLE_FOLLY "Use Folly" ON) | ||
if(ENABLE_FOLLY) | ||
find_package(Folly) | ||
if(NOT Folly_FOUND) | ||
set(ENABLE_FOLLY OFF CACHE BOOL "Use Folly" FORCE) | ||
else() | ||
set(FOLLY_LIBRARIES "") | ||
add_definitions("-DHAVE_FOLLY") | ||
list(APPEND Folly_LIBRARIES Folly::folly ${Glog_LIBRARIES}) | ||
# TODO: use Folly::folly_deps? | ||
if(MSVC) | ||
find_package(Libevent COMPONENTS core REQUIRED) | ||
list(APPEND Folly_LIBRARIES libevent::core) | ||
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. I think |
||
endif() | ||
endif() | ||
endif() | ||
|
||
|
||
# SQLite | ||
include_directories(omniscidb/ThirdParty/sqlite3) | ||
add_subdirectory(omniscidb/ThirdParty/sqlite3) | ||
|
@@ -100,10 +123,6 @@ endif() | |
# Copy ThirdParty to build dir so OmniSciDB dependencies can be copied over. Note that third_party is available internally for HDK specific dependencies. | ||
file(COPY "${CMAKE_SOURCE_DIR}/ThirdParty" DESTINATION "${CMAKE_BINARY_DIR}/") | ||
|
||
# External Dependencies | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules") | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/omniscidb/cmake/Modules") | ||
|
||
# Google log | ||
add_subdirectory(third_party/glog-0.5.0 EXCLUDE_FROM_ALL) | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/third_party/glog-0.5.0/cmake") | ||
|
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
This file was deleted.
Oops, 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
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
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.
I wish we could avoid using any legacy cmake stuff