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
ce7aa0a3
Commit
ce7aa0a3
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Fixed sqlite linking problems caused by new Findsqlite.cmake
parent
5e806be0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
catalogue/CMakeLists.txt
+3
-1
3 additions, 1 deletion
catalogue/CMakeLists.txt
cmake/Findsqlite.cmake
+8
-2
8 additions, 2 deletions
cmake/Findsqlite.cmake
scheduler/CMakeLists.txt
+3
-9
3 additions, 9 deletions
scheduler/CMakeLists.txt
with
14 additions
and
12 deletions
catalogue/CMakeLists.txt
+
3
−
1
View file @
ce7aa0a3
...
...
@@ -35,6 +35,8 @@ set (CATALOGUE_UNIT_TESTS_LIB_SRC_FILES
add_library
(
ctacatalogueunittests SHARED
${
CATALOGUE_UNIT_TESTS_LIB_SRC_FILES
}
)
target_link_libraries
(
ctacatalogueunittests ctacatalogue
)
target_link_libraries
(
ctacatalogueunittests
ctacatalogue
${
SQLITE_LIBRARIES
}
)
install
(
TARGETS ctacatalogueunittests DESTINATION usr/
${
CMAKE_INSTALL_LIBDIR
}
)
This diff is collapsed.
Click to expand it.
cmake/Findsqlite.cmake
+
8
−
2
View file @
ce7aa0a3
...
...
@@ -17,12 +17,18 @@
# This module will set the following variables:
# SQLITE_FOUND
# SQLITE_INCLUDE_DIRS
# SQLITE_LIBRARIES
find_path
(
SQLITE_INCLUDE_DIRS
find_path
(
SQLITE_INCLUDE_DIRS
sqlite3.h
PATHS /usr/include
NO_DEFAULT_PATH
)
find_library
(
SQLITE_LIBRARIES
NAME sqlite3
PATHS /usr/lib64
NO_DEFAULT_PATH
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
sqlite DEFAULT_MSG
SQLITE_INCLUDE_DIRS
)
SQLITE_INCLUDE_DIRS
SQLITE_LIBRARIES
)
This diff is collapsed.
Click to expand it.
scheduler/CMakeLists.txt
+
3
−
9
View file @
ce7aa0a3
cmake_minimum_required
(
VERSION 2.6
)
find_package
(
sqlite REQUIRED
)
include_directories
(
${
SQLITE3_INCLUDE_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
${
PROJECT_SOURCE_DIR
}
${
CMAKE_BINARY_DIR
}
)
set
(
CTA_SCHEDULER_SRC_FILES
...
...
@@ -14,8 +13,6 @@ set (CTA_SCHEDULER_SRC_FILES
LogicalLibrary.cpp
# mockDB/MockSchedulerDatabase.cpp
# mockDB/MockSchedulerDatabaseFactory.cpp
# mockDB/SqliteColumnNameToIndex.cpp
# mockDB/SQLiteStatementDeleter.cpp
MountType.cpp
PositioningMethod.cpp
RetrieveJob.cpp
...
...
@@ -25,8 +22,6 @@ set (CTA_SCHEDULER_SRC_FILES
Scheduler.cpp
SchedulerDatabase.cpp
SchedulerDatabaseFactory.cpp
# mockDB/SqliteColumnNameToIndex.cpp
# mockDB/SQLiteStatementDeleter.cpp
MountType.cpp
UserRequest.cpp
OStoreDB/OStoreDB.cpp
...
...
@@ -36,7 +31,7 @@ add_library (ctascheduler SHARED
${
CTA_SCHEDULER_SRC_FILES
}
)
install
(
TARGETS ctascheduler DESTINATION usr/
${
CMAKE_INSTALL_LIBDIR
}
)
target_link_libraries
(
ctascheduler
${
SQLITE3_LIBRARY_RELEASE
}
ctacommon ctaobjectstore protobuf Utils ctautils
)
target_link_libraries
(
ctascheduler ctacommon ctaobjectstore protobuf Utils ctautils
)
#add_library (ctaschedulerutils SHARED
# _old_prototype_DummyScheduler.cpp)
...
...
@@ -48,7 +43,6 @@ add_library (ctaschedulerunittests SHARED
SchedulerDatabaseTest.cpp
)
target_link_libraries
(
ctaschedulerunittests
${
SQLITE3_LIBRARY_RELEASE
}
ctascheduler
)
install
(
TARGETS ctaschedulerunittests DESTINATION usr/
${
CMAKE_INSTALL_LIBDIR
}
)
\ No newline at end of file
install
(
TARGETS ctaschedulerunittests DESTINATION usr/
${
CMAKE_INSTALL_LIBDIR
}
)
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