Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
abseil-cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Third Party Libraries
abseil-cpp
Commits
765541cd
Commit
765541cd
authored
7 years ago
by
Roman Gershman
Browse files
Options
Downloads
Patches
Plain Diff
Relax dependency on googletest and allow customization of cctz target
parent
ff704564
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+20
-15
20 additions, 15 deletions
CMakeLists.txt
absl/time/CMakeLists.txt
+1
-1
1 addition, 1 deletion
absl/time/CMakeLists.txt
with
21 additions
and
16 deletions
CMakeLists.txt
+
20
−
15
View file @
765541cd
...
@@ -58,29 +58,34 @@ list(APPEND ABSL_COMMON_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
...
@@ -58,29 +58,34 @@ list(APPEND ABSL_COMMON_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
set
(
CMAKE_CXX_FLAGS
"
${
ABSL_STD_CXX_FLAG
}
${
CMAKE_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
ABSL_STD_CXX_FLAG
}
${
CMAKE_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_WARNING_VLA
}
${
CMAKE_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_WARNING_VLA
}
${
CMAKE_CXX_FLAGS
}
"
)
# find dependencies
# find dependencies
## pthread
## pthread
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
if
(
NOT CCTZ_TARGET
)
set
(
CCTZ_TARGET cctz
)
endif
()
# commented: used only for standalone test
# commented: used only for standalone test
#add_subdirectory(cctz)
#add_subdirectory(cctz)
#add_subdirectory(googletest)
#add_subdirectory(googletest)
check_target
(
{
${
CCTZ_TARGET
}
)
## check targets
## check targets
check_target
(
cctz
)
if
(
BUILD_TESTING
)
check_target
(
gtest
)
check_target
(
gtest
)
check_target
(
gtest_main
)
check_target
(
gtest_main
)
check_target
(
gmock
)
check_target
(
gmock
)
# -fexceptions
# -fexceptions
set
(
ABSL_EXCEPTIONS_FLAG
"
${
CMAKE_CXX_EXCEPTIONS
}
"
)
set
(
ABSL_EXCEPTIONS_FLAG
"
${
CMAKE_CXX_EXCEPTIONS
}
"
)
list
(
APPEND ABSL_TEST_COMMON_LIBRARIES
list
(
APPEND ABSL_TEST_COMMON_LIBRARIES
gtest_main
gtest_main
gtest
gtest
gmock
gmock
${
CMAKE_THREAD_LIBS_INIT
}
${
CMAKE_THREAD_LIBS_INIT
}
)
)
endif
()
add_subdirectory
(
absl
)
add_subdirectory
(
absl
)
This diff is collapsed.
Click to expand it.
absl/time/CMakeLists.txt
+
1
−
1
View file @
765541cd
...
@@ -32,7 +32,7 @@ list(APPEND TIME_SRC
...
@@ -32,7 +32,7 @@ list(APPEND TIME_SRC
${
TIME_PUBLIC_HEADERS
}
${
TIME_PUBLIC_HEADERS
}
${
TIME_INTERNAL_HEADERS
}
${
TIME_INTERNAL_HEADERS
}
)
)
set
(
TIME_PUBLIC_LIBRARIES absl::base absl::stacktrace absl::int128
cctz
)
set
(
TIME_PUBLIC_LIBRARIES absl::base absl::stacktrace absl::int128
{CCTZ_TARGET}
)
absl_library
(
absl_library
(
TARGET
TARGET
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment