Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
04265e40
Commit
04265e40
authored
May 27, 2016
by
Walter Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove if(TRUE)
parent
2131b2d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
28 deletions
+26
-28
install.cmake
cmake/install.cmake
+26
-28
No files found.
cmake/install.cmake
View file @
04265e40
...
...
@@ -16,34 +16,32 @@ endforeach()
install
(
TARGETS protoc EXPORT protobuf-targets
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
COMPONENT protoc
)
if
(
TRUE
)
file
(
STRINGS extract_includes.bat.in _extract_strings
REGEX
"^copy"
)
foreach
(
_extract_string
${
_extract_strings
}
)
string
(
REPLACE
"copy
\$
{PROTOBUF_SOURCE_WIN32_PATH}
\\
"
""
_extract_string
${
_extract_string
}
)
string
(
REPLACE
"
\\
"
"/"
_extract_string
${
_extract_string
}
)
string
(
REGEX MATCH
"^[^ ]+"
_extract_from
${
_extract_string
}
)
string
(
REGEX REPLACE
"^
${
_extract_from
}
([^$]+)"
"
\\
1"
_extract_to
${
_extract_string
}
)
get_filename_component
(
_extract_from
"
${
protobuf_SOURCE_DIR
}
/
${
_extract_from
}
"
ABSOLUTE
)
get_filename_component
(
_extract_name
${
_extract_to
}
NAME
)
get_filename_component
(
_extract_to
${
_extract_to
}
PATH
)
string
(
REPLACE
"include/"
"
${
CMAKE_INSTALL_INCLUDEDIR
}
/"
_extract_to
"
${
_extract_to
}
"
)
if
(
EXISTS
"
${
_extract_from
}
"
)
install
(
FILES
"
${
_extract_from
}
"
DESTINATION
"
${
_extract_to
}
"
COMPONENT protobuf-headers
RENAME
"
${
_extract_name
}
"
)
else
()
message
(
AUTHOR_WARNING
"The file
\"
${
_extract_from
}
\"
is listed in "
"
\"
${
protobuf_SOURCE_DIR
}
/cmake/extract_includes.bat.in
\"
"
"but there not exists. The file will not be installed."
)
endif
()
endforeach
()
endif
()
file
(
STRINGS extract_includes.bat.in _extract_strings
REGEX
"^copy"
)
foreach
(
_extract_string
${
_extract_strings
}
)
string
(
REPLACE
"copy
\$
{PROTOBUF_SOURCE_WIN32_PATH}
\\
"
""
_extract_string
${
_extract_string
}
)
string
(
REPLACE
"
\\
"
"/"
_extract_string
${
_extract_string
}
)
string
(
REGEX MATCH
"^[^ ]+"
_extract_from
${
_extract_string
}
)
string
(
REGEX REPLACE
"^
${
_extract_from
}
([^$]+)"
"
\\
1"
_extract_to
${
_extract_string
}
)
get_filename_component
(
_extract_from
"
${
protobuf_SOURCE_DIR
}
/
${
_extract_from
}
"
ABSOLUTE
)
get_filename_component
(
_extract_name
${
_extract_to
}
NAME
)
get_filename_component
(
_extract_to
${
_extract_to
}
PATH
)
string
(
REPLACE
"include/"
"
${
CMAKE_INSTALL_INCLUDEDIR
}
/"
_extract_to
"
${
_extract_to
}
"
)
if
(
EXISTS
"
${
_extract_from
}
"
)
install
(
FILES
"
${
_extract_from
}
"
DESTINATION
"
${
_extract_to
}
"
COMPONENT protobuf-headers
RENAME
"
${
_extract_name
}
"
)
else
()
message
(
AUTHOR_WARNING
"The file
\"
${
_extract_from
}
\"
is listed in "
"
\"
${
protobuf_SOURCE_DIR
}
/cmake/extract_includes.bat.in
\"
"
"but there not exists. The file will not be installed."
)
endif
()
endforeach
()
# Internal function for parsing auto tools scripts
function
(
_protobuf_auto_list FILE_NAME VARIABLE
)
...
...
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