Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diy2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Spiros Tsalikis
diy2
Commits
05c0c3ba
Commit
05c0c3ba
authored
4 years ago
by
Sujin Philip
Browse files
Options
Downloads
Patches
Plain Diff
Change install paths for certain files
parent
9e2377b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+8
-6
8 additions, 6 deletions
CMakeLists.txt
tests/backward/CMakeLists.txt
+1
-0
1 addition, 0 deletions
tests/backward/CMakeLists.txt
with
9 additions
and
6 deletions
CMakeLists.txt
+
8
−
6
View file @
05c0c3ba
...
@@ -40,6 +40,7 @@ diy_option (caliper "Build DIY with caliper"
...
@@ -40,6 +40,7 @@ diy_option (caliper "Build DIY with caliper"
diy_option
(
mpi
"Build DIY with mpi"
ON
)
diy_option
(
mpi
"Build DIY with mpi"
ON
)
diy_option
(
wrapped_mpi
"MPI compiler wrapper requires no further MPI libraries"
OFF
)
diy_option
(
wrapped_mpi
"MPI compiler wrapper requires no further MPI libraries"
OFF
)
diy_option
(
build_diy_mpi_lib
"Build diy::mpi as a library"
OFF
)
diy_option
(
build_diy_mpi_lib
"Build diy::mpi as a library"
OFF
)
diy_dependent_option
(
BUILD_SHARED_LIBS
"Create shared libraries if on"
ON
"build_diy_mpi_lib"
OFF
)
diy_dependent_option
(
build_diy_nompi_lib
"Also build the nompi version of diy::mpi"
OFF
"mpi;build_diy_mpi_lib"
OFF
)
diy_dependent_option
(
build_diy_nompi_lib
"Also build the nompi version of diy::mpi"
OFF
"mpi;build_diy_mpi_lib"
OFF
)
diy_option
(
build_examples
"Build DIY examples"
ON
)
diy_option
(
build_examples
"Build DIY examples"
ON
)
diy_option
(
build_tests
"Build DIY tests"
ON
)
diy_option
(
build_tests
"Build DIY tests"
ON
)
...
@@ -110,6 +111,7 @@ if (NOT DEFINED diy_export_name)
...
@@ -110,6 +111,7 @@ if (NOT DEFINED diy_export_name)
set
(
diy_export_name
"diy_targets"
)
set
(
diy_export_name
"diy_targets"
)
endif
()
endif
()
set
(
CMAKE_ARCHIVE_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
"
${
PROJECT_BINARY_DIR
}
/lib"
)
# for diy_developer_flags
# for diy_developer_flags
...
@@ -232,13 +234,12 @@ endif (build_tests)
...
@@ -232,13 +234,12 @@ endif (build_tests)
include
(
CMakePackageConfigHelpers
)
include
(
CMakePackageConfigHelpers
)
configure_package_config_file
(
configure_package_config_file
(
"
${
PROJECT_SOURCE_DIR
}
/cmake/diy-config.cmake.in"
"
${
PROJECT_SOURCE_DIR
}
/cmake/diy-config.cmake.in"
"
${
PROJECT_BINARY_DIR
}
/
lib/
${
diy_prefix
}
/
diy-config.cmake"
"
${
PROJECT_BINARY_DIR
}
/diy-config.cmake"
INSTALL_DESTINATION
"
${
diy_install_lib_dir
}
/
${
diy_prefix
}
"
)
INSTALL_DESTINATION
"
.
"
)
# install targets
# install targets
if
(
NOT DEFINED diy_install_only_libraries
)
# defined by parent project if building for binary distribution
if
(
NOT DEFINED diy_install_only_libraries
)
# defined by parent project if building for binary distribution
install
(
DIRECTORY
${
PROJECT_SOURCE_DIR
}
/include/
${
diy_prefix
}
DESTINATION
${
diy_install_include_dir
}
)
install
(
DIRECTORY
${
PROJECT_SOURCE_DIR
}
/include/
${
diy_prefix
}
DESTINATION
${
diy_install_include_dir
}
)
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/lib/
${
diy_prefix
}
/diy-config.cmake"
DESTINATION
"
${
diy_install_lib_dir
}
/
${
diy_prefix
}
"
)
if
(
build_diy_mpi_lib
)
if
(
build_diy_mpi_lib
)
install
(
FILES
${
PROJECT_BINARY_DIR
}
/include/
${
diy_prefix
}
/mpi/mpitypes.hpp DESTINATION
${
diy_install_include_dir
}
/
${
diy_prefix
}
/mpi
)
install
(
FILES
${
PROJECT_BINARY_DIR
}
/include/
${
diy_prefix
}
/mpi/mpitypes.hpp DESTINATION
${
diy_install_include_dir
}
/
${
diy_prefix
}
/mpi
)
...
@@ -247,7 +248,8 @@ endif()
...
@@ -247,7 +248,8 @@ endif()
install
(
TARGETS
${
diy_targets
}
EXPORT
${
diy_export_name
}
DESTINATION
${
diy_install_lib_dir
}
)
install
(
TARGETS
${
diy_targets
}
EXPORT
${
diy_export_name
}
DESTINATION
${
diy_install_lib_dir
}
)
export
(
EXPORT
${
diy_export_name
}
NAMESPACE DIY:: FILE
"
${
PROJECT_BINARY_DIR
}
/lib/
${
diy_prefix
}
/diy-targets.cmake"
)
export
(
EXPORT
${
diy_export_name
}
NAMESPACE DIY:: FILE
"
${
PROJECT_BINARY_DIR
}
/diy-targets.cmake"
)
if
(
NOT DEFINED diy_dont_install_export
)
# defined by parent project if it is handling the exports
if
(
CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR
)
# Only generate these files when diy is the main project
install
(
EXPORT
${
diy_export_name
}
NAMESPACE DIY:: DESTINATION
"
${
diy_install_lib_dir
}
/
${
diy_prefix
}
"
FILE diy-targets.cmake
)
install
(
EXPORT
${
diy_export_name
}
NAMESPACE DIY:: DESTINATION
"."
FILE diy-targets.cmake
)
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/diy-config.cmake"
DESTINATION
"."
)
endif
()
endif
()
This diff is collapsed.
Click to expand it.
tests/backward/CMakeLists.txt
+
1
−
0
View file @
05c0c3ba
...
@@ -80,6 +80,7 @@ set(BACKWARD_ENABLE $<TARGET_OBJECTS:backward_object> CACHE STRING
...
@@ -80,6 +80,7 @@ set(BACKWARD_ENABLE $<TARGET_OBJECTS:backward_object> CACHE STRING
###############################################################################
###############################################################################
option
(
BACKWARD_SHARED
"Build dynamic backward-cpp shared lib"
OFF
)
option
(
BACKWARD_SHARED
"Build dynamic backward-cpp shared lib"
OFF
)
set
(
libtype STATIC
)
if
(
BACKWARD_SHARED
)
if
(
BACKWARD_SHARED
)
set
(
libtype SHARED
)
set
(
libtype SHARED
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment