Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
3rd
jsoncpp2
Commits
993e4e28
Commit
993e4e28
authored
4 years ago
by
Sergey Rachev
Committed by
Christopher Dunn
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
- isolated namespace targets into separate file
parent
2af4a4c6
master
archersim/1.9.5
hwcd/bugfix
1.9.5
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-0
CMakeLists.txt
jsoncpp-namespaced-targets.cmake
+7
-0
jsoncpp-namespaced-targets.cmake
jsoncppConfig.cmake.in
+1
-8
jsoncppConfig.cmake.in
with
9 additions
and
8 deletions
+9
-8
CMakeLists.txt
View file @
993e4e28
...
...
@@ -186,6 +186,7 @@ if(JSONCPP_WITH_CMAKE_PACKAGE)
COMPATIBILITY SameMajorVersion
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/jsoncppConfigVersion.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/jsoncppConfig.cmake
${
CMAKE_CURRENT_SOURCE_DIR
}
/jsoncpp-namespaced-targets.cmake
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/cmake/jsoncpp
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
jsoncpp-namespaced-targets.cmake
0 → 100644
View file @
993e4e28
if
(
TARGET jsoncpp_static
)
add_library
(
JsonCpp::JsonCpp INTERFACE IMPORTED
)
set_target_properties
(
JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES
"jsoncpp_static"
)
elseif
(
TARGET jsoncpp_lib
)
add_library
(
JsonCpp::JsonCpp INTERFACE IMPORTED
)
set_target_properties
(
JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES
"jsoncpp_lib"
)
endif
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
jsoncppConfig.cmake.in
View file @
993e4e28
...
...
@@ -4,14 +4,7 @@ cmake_policy(VERSION 3.0)
@PACKAGE_INIT@
include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-targets.cmake" )
if(TARGET jsoncpp_static)
add_library(JsonCpp::JsonCpp INTERFACE IMPORTED )
set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_static")
elseif(TARGET jsoncpp_lib)
add_library(JsonCpp::JsonCpp INTERFACE IMPORTED )
set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_lib")
endif()
include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-namespaced-targets.cmake" )
check_required_components(JsonCpp)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help