Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abseil-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
abseil-cpp
Commits
dadcd56b
Commit
dadcd56b
authored
Oct 11, 2018
by
Loo Rong Jie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use target_sources and remove one non-existent file
parent
f59e0f1d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
CMake/AbseilHelpers.cmake
+6
-7
absl/strings/CMakeLists.txt
+0
-1
No files found.
CMake/AbseilHelpers.cmake
View file @
dadcd56b
...
@@ -129,16 +129,15 @@ function(absl_cc_library)
...
@@ -129,16 +129,15 @@ function(absl_cc_library)
endif
()
endif
()
# Check if this is a header-only library
# Check if this is a header-only library
if
(
ABSL_CC_LIB_SRCS
)
if
(
"
${
ABSL_CC_LIB_SRCS
}
"
STREQUAL
""
)
set
(
_SRCS
${
ABSL_CC_LIB_SRCS
}
)
set
(
ABSL_CC_LIB_IS_INTERFACE 1
)
list
(
FILTER _SRCS INCLUDE REGEX
"\.cc$"
)
list
(
LENGTH _SRCS ABSL_CC_LIB_SRCS_LEN
)
else
()
else
()
set
(
ABSL_CC_LIB_
SRCS_LEN
0
)
set
(
ABSL_CC_LIB_
IS_INTERFACE
0
)
endif
()
endif
()
if
(
ABSL_CC_LIB_SRCS_LEN
)
if
(
NOT ABSL_CC_LIB_IS_INTERFACE
)
add_library
(
${
_NAME
}
STATIC
${
ABSL_CC_LIB_SRCS
}
${
ABSL_CC_LIB_HDRS
}
)
add_library
(
${
_NAME
}
STATIC
""
)
target_sources
(
${
_NAME
}
PRIVATE
${
ABSL_CC_LIB_SRCS
}
${
ABSL_CC_LIB_HDRS
}
)
target_include_directories
(
${
_NAME
}
target_include_directories
(
${
_NAME
}
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
)
PUBLIC
${
ABSL_COMMON_INCLUDE_DIRS
}
)
# TODO(rongjiecomputer): Revisit ABSL_COMPILE_CXXFLAGS when fixing GH#123
# TODO(rongjiecomputer): Revisit ABSL_COMPILE_CXXFLAGS when fixing GH#123
...
...
absl/strings/CMakeLists.txt
View file @
dadcd56b
...
@@ -32,7 +32,6 @@ list(APPEND STRINGS_PUBLIC_HEADERS
...
@@ -32,7 +32,6 @@ list(APPEND STRINGS_PUBLIC_HEADERS
list
(
APPEND STRINGS_INTERNAL_HEADERS
list
(
APPEND STRINGS_INTERNAL_HEADERS
"internal/bits.h"
"internal/char_map.h"
"internal/char_map.h"
"internal/charconv_bigint.h"
"internal/charconv_bigint.h"
"internal/charconv_parse.h"
"internal/charconv_parse.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment