Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
c531f9d0
Commit
c531f9d0
authored
Apr 14, 2016
by
Branislav Katreniak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: move cmake files to directory `cmake` in binary dir
Build location is consistent with source and install location.
parent
5c87e76c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
CMakeLists.txt
c++/CMakeLists.txt
+6
-6
No files found.
c++/CMakeLists.txt
View file @
c531f9d0
...
@@ -88,19 +88,19 @@ add_subdirectory(src)
...
@@ -88,19 +88,19 @@ add_subdirectory(src)
include
(
CMakePackageConfigHelpers
)
include
(
CMakePackageConfigHelpers
)
write_basic_package_version_file
(
write_basic_package_version_file
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/CapnProtoConfigVersion.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
cmake/
CapnProtoConfigVersion.cmake"
VERSION
${
VERSION
}
VERSION
${
VERSION
}
COMPATIBILITY AnyNewerVersion
COMPATIBILITY AnyNewerVersion
)
)
set
(
CONFIG_PACKAGE_LOCATION
${
CMAKE_INSTALL_LIBDIR
}
/cmake/CapnProto
)
set
(
CONFIG_PACKAGE_LOCATION
${
CMAKE_INSTALL_LIBDIR
}
/cmake/CapnProto
)
configure_package_config_file
(
cmake/CapnProtoConfig.cmake.in
configure_package_config_file
(
cmake/CapnProtoConfig.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/CapnProtoConfig.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/
cmake/
CapnProtoConfig.cmake
INSTALL_DESTINATION
${
CONFIG_PACKAGE_LOCATION
}
INSTALL_DESTINATION
${
CONFIG_PACKAGE_LOCATION
}
PATH_VARS CMAKE_INSTALL_FULL_INCLUDEDIR
PATH_VARS CMAKE_INSTALL_FULL_INCLUDEDIR
)
)
export
(
EXPORT CapnProtoTargets
export
(
EXPORT CapnProtoTargets
FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/CapnProtoTargets.cmake"
FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/
cmake/
CapnProtoTargets.cmake"
NAMESPACE CapnProto::
NAMESPACE CapnProto::
)
)
install
(
EXPORT CapnProtoTargets
install
(
EXPORT CapnProtoTargets
...
@@ -110,12 +110,12 @@ install(EXPORT CapnProtoTargets
...
@@ -110,12 +110,12 @@ install(EXPORT CapnProtoTargets
)
)
install
(
FILES
install
(
FILES
cmake/CapnProtoMacros.cmake
cmake/CapnProtoMacros.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/CapnProtoConfig.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/
cmake/
CapnProtoConfig.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/CapnProtoConfigVersion.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/
cmake/
CapnProtoConfigVersion.cmake
DESTINATION
${
CONFIG_PACKAGE_LOCATION
}
DESTINATION
${
CONFIG_PACKAGE_LOCATION
}
)
)
#install CapnProtoMacros for CapnProtoConfig.cmake build directory consumers
#install CapnProtoMacros for CapnProtoConfig.cmake build directory consumers
configure_file
(
cmake/CapnProtoMacros.cmake CapnProtoMacros.cmake COPYONLY
)
configure_file
(
cmake/CapnProtoMacros.cmake
cmake/
CapnProtoMacros.cmake COPYONLY
)
if
(
NOT MSVC
)
# Don't install pkg-config files when building with MSVC
if
(
NOT MSVC
)
# Don't install pkg-config files when building with MSVC
# Variables for pkg-config files
# Variables for pkg-config files
...
...
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