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
5e806be0
Commit
5e806be0
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Replaced Findsqlite.cmake with a lighter version
parent
c67fea5e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/Findsqlite.cmake
+28
-36
28 additions, 36 deletions
cmake/Findsqlite.cmake
with
28 additions
and
36 deletions
cmake/Findsqlite.cmake
+
28
−
36
View file @
5e806be0
IF
(
SQLITE3_INCLUDE_DIR AND SQLITE3_LIBRARY_RELEASE AND SQLITE3_LIBRARY_DEBUG
)
SET
(
SQLITE3_FIND_QUIETLY TRUE
)
ENDIF
(
SQLITE3_INCLUDE_DIR AND SQLITE3_LIBRARY_RELEASE AND SQLITE3_LIBRARY_DEBUG
)
FIND_PATH
(
SQLITE3_INCLUDE_DIR sqlite3.h
)
FIND_LIBRARY
(
SQLITE3_LIBRARY_RELEASE NAMES sqlite3
)
FIND_LIBRARY
(
SQLITE3_LIBRARY_DEBUG NAMES sqlite3 sqlite3d HINTS /usr/lib/debug/usr/lib/
)
IF
(
SQLITE3_LIBRARY_RELEASE OR SQLITE3_LIBRARY_DEBUG AND SQLITE3_INCLUDE_DIR
)
SET
(
SQLITE3_FOUND TRUE
)
ENDIF
(
SQLITE3_LIBRARY_RELEASE OR SQLITE3_LIBRARY_DEBUG AND SQLITE3_INCLUDE_DIR
)
IF
(
SQLITE3_LIBRARY_DEBUG AND SQLITE3_LIBRARY_RELEASE
)
# if the generator supports configuration types then set
# optimized and debug libraries, or if the CMAKE_BUILD_TYPE has a value
IF
(
CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE
)
SET
(
SQLITE3_LIBRARIES optimized
${
SQLITE3_LIBRARY_RELEASE
}
debug
${
SQLITE3_LIBRARY_DEBUG
}
)
ELSE
(
CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE
)
# if there are no configuration types and CMAKE_BUILD_TYPE has no value
# then just use the release libraries
SET
(
SQLITE3_LIBRARIES
${
SQLITE3_LIBRARY_RELEASE
}
)
ENDIF
(
CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE
)
ELSEIF
(
SQLITE3_LIBRARY_RELEASE
)
SET
(
SQLITE3_LIBRARIES
${
SQLITE3_LIBRARY_RELEASE
}
)
ELSE
(
SQLITE3_LIBRARY_DEBUG AND SQLITE3_LIBRARY_RELEASE
)
SET
(
SQLITE3_LIBRARIES
${
SQLITE3_LIBRARY_DEBUG
}
)
ENDIF
(
SQLITE3_LIBRARY_DEBUG AND SQLITE3_LIBRARY_RELEASE
)
IF
(
SQLITE3_FOUND
)
IF
(
NOT SQLITE3_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found Sqlite3 header file in
${
SQLITE3_INCLUDE_DIR
}
"
)
MESSAGE
(
STATUS
"Found Sqlite3 libraries:
${
SQLITE3_LIBRARIES
}
"
)
ENDIF
(
NOT SQLITE3_FIND_QUIETLY
)
ELSE
(
SQLITE3_FOUND
)
IF
(
SQLITE3_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find Sqlite3"
)
ELSE
(
SQLITE3_FIND_REQUIRED
)
MESSAGE
(
STATUS
"Optional package Sqlite3 was not found"
)
ENDIF
(
SQLITE3_FIND_REQUIRED
)
ENDIF
(
SQLITE3_FOUND
)
\ No newline at end of file
# The CERN Tape Archive(CTA) project
# Copyright(C) 2015 CERN
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This module will set the following variables:
# SQLITE_FOUND
# SQLITE_INCLUDE_DIRS
find_path
(
SQLITE_INCLUDE_DIRS
sqlite3.h
PATHS /usr/include
NO_DEFAULT_PATH
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
sqlite DEFAULT_MSG
SQLITE_INCLUDE_DIRS
)
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