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
a76ceed6
Commit
a76ceed6
authored
Oct 09, 2018
by
Loo Rong Jie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment and todo
parent
6b16ba04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
CMake/AbseilHelpers.cmake
+2
-0
No files found.
CMake/AbseilHelpers.cmake
View file @
a76ceed6
...
@@ -137,6 +137,7 @@ function(absl_cc_library)
...
@@ -137,6 +137,7 @@ function(absl_cc_library)
add_library
(
${
_NAME
}
STATIC
${
ABSL_CC_LIB_SRCS
}
${
ABSL_CC_LIB_HDRS
}
)
add_library
(
${
_NAME
}
STATIC
${
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
target_compile_options
(
${
_NAME
}
target_compile_options
(
${
_NAME
}
PRIVATE
${
ABSL_COMPILE_CXXFLAGS
}
${
ABSL_CC_LIB_COPTS
}
)
PRIVATE
${
ABSL_COMPILE_CXXFLAGS
}
${
ABSL_CC_LIB_COPTS
}
)
target_link_libraries
(
${
_NAME
}
target_link_libraries
(
${
_NAME
}
...
@@ -148,6 +149,7 @@ function(absl_cc_library)
...
@@ -148,6 +149,7 @@ function(absl_cc_library)
# Add all Abseil targets to a a folder in the IDE for organization.
# Add all Abseil targets to a a folder in the IDE for organization.
set_property
(
TARGET
${
_NAME
}
PROPERTY FOLDER
${
ABSL_IDE_FOLDER
}
)
set_property
(
TARGET
${
_NAME
}
PROPERTY FOLDER
${
ABSL_IDE_FOLDER
}
)
else
()
else
()
# Generating header-only library
add_library
(
${
_NAME
}
INTERFACE
)
add_library
(
${
_NAME
}
INTERFACE
)
target_include_directories
(
${
_NAME
}
INTERFACE
${
ABSL_COMMON_INCLUDE_DIRS
}
)
target_include_directories
(
${
_NAME
}
INTERFACE
${
ABSL_COMMON_INCLUDE_DIRS
}
)
target_link_libraries
(
${
_NAME
}
target_link_libraries
(
${
_NAME
}
...
...
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