Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dCache
cta
Commits
d2d80a33
Commit
d2d80a33
authored
11 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
More
parent
33256c2f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+9
-3
9 additions, 3 deletions
CMakeLists.txt
common/CMakeLists.txt
+8
-1
8 additions, 1 deletion
common/CMakeLists.txt
tape/CMakeLists.txt
+1
-1
1 addition, 1 deletion
tape/CMakeLists.txt
with
18 additions
and
5 deletions
CMakeLists.txt
+
9
−
3
View file @
d2d80a33
...
...
@@ -10,11 +10,17 @@ set (CASTOR_DEST_LIB_DIR /usr/lib64)
# be specified here
set
(
CMAKE_C_FLAGS
"-pthread -fPIC -Wall -Wextra -Werror -Wno-unused-parameter"
)
if
(
APPLE
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-undefined dynamic_lookup"
)
else
(
APPLE
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-pthread"
)
endif
(
APPLE
)
set
(
CMAKE_CXX_FLAGS
${
CMAKE_C_FLAGS
}
)
set_property
(
DIRECTORY PROPERTY COMPILE_DEFINITIONS _LARGEFILE64_SOURCE
)
# Do not add rpath information to compiled executables
set
(
CMAKE_SKIP_RPATH TRUE
)
set_property
(
DIRECTORY PROPERTY COMPILE_DEFINITIONS _LARGEFILE64_SOURCE
)
add_subdirectory
(
common
)
add_subdirectory
(
tape
)
This diff is collapsed.
Click to expand it.
common/CMakeLists.txt
+
8
−
1
View file @
d2d80a33
...
...
@@ -3,6 +3,12 @@ cmake_minimum_required (VERSION 2.6)
include_directories
(
".."
)
include_directories
(
"../h"
)
if
(
APPLE
)
set
(
UUID_LIB_NAME
"System"
)
else
(
APPLE
)
set
(
UUID_LIB_NAME
"uuid"
)
endif
(
APPLE
)
set
(
COMMON_LIB_SRC_FILES
compat.c getacct.c getacctent.c getconfent.cpp
getifnam.c getuser.c log.c marshall.c
...
...
@@ -47,4 +53,5 @@ set (COMMON_LIB_SRC_FILES
add_library
(
castorcommon SHARED
${
COMMON_LIB_SRC_FILES
}
)
set_target_properties
(
castorcommon
PROPERTIES SOVERSION
${
MAJOR_CASTOR_VERSION
}
)
install
(
TARGETS castorcommon DESTINATION $CASTOR_DEST_LIB_DIR
)
target_link_libraries
(
castorcommon dl
${
UUID_LIB_NAME
}
)
install
(
TARGETS castorcommon DESTINATION
${
CASTOR_DEST_LIB_DIR
}
)
This diff is collapsed.
Click to expand it.
tape/CMakeLists.txt
+
1
−
1
View file @
d2d80a33
...
...
@@ -31,4 +31,4 @@ set (TAPE_LIB_SRC_FILES Ctape_config.c Ctape_devinfo.c Ctape_dmpfil.c
add_library
(
castortape SHARED
${
TAPE_LIB_SRC_FILES
}
${
TAPE_LIB_USR_SRC_FILES
}
)
set_target_properties
(
castortape PROPERTIES SOVERSION
${
MAJOR_CASTOR_VERSION
}
)
target_link_libraries
(
castortape castorcommon
)
install
(
TARGETS castortape DESTINATION $CASTOR_DEST_LIB_DIR
)
install
(
TARGETS castortape DESTINATION
$
{
CASTOR_DEST_LIB_DIR
}
)
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