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
f397ede7
Commit
f397ede7
authored
Sep 17, 2015
by
Konstantin Podsvirov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CMake option protobuf_DEBUG_POSTFIX
parent
e301946c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
CMakeLists.txt
cmake/CMakeLists.txt
+2
-0
libprotobuf-lite.cmake
cmake/libprotobuf-lite.cmake
+2
-1
libprotobuf.cmake
cmake/libprotobuf.cmake
+2
-1
libprotoc.cmake
cmake/libprotoc.cmake
+2
-1
No files found.
cmake/CMakeLists.txt
View file @
f397ede7
...
...
@@ -18,6 +18,8 @@ else (MSVC)
set
(
protobuf_WITH_ZLIB_DEFAULT ON
)
endif
(
MSVC
)
option
(
protobuf_WITH_ZLIB
"Build with zlib support"
${
protobuf_WITH_ZLIB_DEFAULT
}
)
set
(
protobuf_DEBUG_POSTFIX
"d"
CACHE STRING
"Default debug postfix"
)
# Path to main configure script
set
(
protobuf_CONFIGURE_SCRIPT
"../configure.ac"
)
...
...
cmake/libprotobuf-lite.cmake
View file @
f397ede7
...
...
@@ -29,4 +29,5 @@ target_link_libraries(libprotobuf-lite ${CMAKE_THREAD_LIBS_INIT})
target_include_directories
(
libprotobuf-lite PUBLIC
${
protobuf_source_dir
}
/src
)
set_target_properties
(
libprotobuf-lite PROPERTIES
COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS
OUTPUT_NAME
${
LIB_PREFIX
}
protobuf-lite
)
OUTPUT_NAME
${
LIB_PREFIX
}
protobuf-lite
DEBUG_POSTFIX
"
${
protobuf_DEBUG_POSTFIX
}
"
)
cmake/libprotobuf.cmake
View file @
f397ede7
...
...
@@ -58,4 +58,5 @@ target_link_libraries(libprotobuf ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES})
target_include_directories
(
libprotobuf PUBLIC
${
protobuf_source_dir
}
/src
)
set_target_properties
(
libprotobuf PROPERTIES
COMPILE_DEFINITIONS LIBPROTOBUF_EXPORTS
OUTPUT_NAME
${
LIB_PREFIX
}
protobuf
)
OUTPUT_NAME
${
LIB_PREFIX
}
protobuf
DEBUG_POSTFIX
"
${
protobuf_DEBUG_POSTFIX
}
"
)
cmake/libprotoc.cmake
View file @
f397ede7
...
...
@@ -93,4 +93,5 @@ add_library(libprotoc ${libprotoc_files})
target_link_libraries
(
libprotoc libprotobuf
)
set_target_properties
(
libprotoc PROPERTIES
COMPILE_DEFINITIONS LIBPROTOC_EXPORTS
OUTPUT_NAME
${
LIB_PREFIX
}
protoc
)
OUTPUT_NAME
${
LIB_PREFIX
}
protoc
DEBUG_POSTFIX
"
${
protobuf_DEBUG_POSTFIX
}
"
)
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