Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL
[WebKit-https.git] / Source / cmake / FindSqlite.cmake
index 1bd8625..47caa36 100644 (file)
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-if ( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARIES )
-   # in cache already
-   SET(Sqlite_FIND_QUIETLY TRUE)
-endif ( SQLITE_INCLUDE_DIR AND SQLITE_LIBRARIES )
+if (SQLITE_INCLUDE_DIR AND SQLITE_LIBRARIES)
+    # in cache already
+    set(Sqlite_FIND_QUIETLY TRUE)
+endif (SQLITE_INCLUDE_DIR AND SQLITE_LIBRARIES)
 
 # use pkg-config to get the directories and then use these values
-# in the FIND_PATH() and FIND_LIBRARY() calls
-if( NOT WIN32 )
-  find_package(PkgConfig)
+# in the find_path() and find_library() calls
+if (NOT WIN32)
+    find_package(PkgConfig)
 
-  pkg_check_modules(PC_SQLITE sqlite3)
+    pkg_check_modules(PC_SQLITE sqlite3)
 
-  set(SQLITE_DEFINITIONS ${PC_SQLITE_CFLAGS_OTHER})
-endif( NOT WIN32 )
+    set(SQLITE_DEFINITIONS ${PC_SQLITE_CFLAGS_OTHER})
+endif (NOT WIN32)
 
-FIND_PATH(SQLITE_INCLUDE_DIR NAMES sqlite3.h
-  PATHS
-  ${PC_SQLITE_INCLUDEDIR}
-  ${PC_SQLITE_INCLUDE_DIRS}
+find_path(SQLITE_INCLUDE_DIR NAMES sqlite3.h
+    PATHS
+    ${PC_SQLITE_INCLUDEDIR}
+    ${PC_SQLITE_INCLUDE_DIRS}
 )
 
-FIND_LIBRARY(SQLITE_LIBRARIES NAMES sqlite3
-  PATHS
-  ${PC_SQLITE_LIBDIR}
-  ${PC_SQLITE_LIBRARY_DIRS}
+find_library(SQLITE_LIBRARIES NAMES sqlite3
+    PATHS
+    ${PC_SQLITE_LIBDIR}
+    ${PC_SQLITE_LIBRARY_DIRS}
 )
 
 include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sqlite DEFAULT_MSG SQLITE_INCLUDE_DIR SQLITE_LIBRARIES )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sqlite DEFAULT_MSG SQLITE_INCLUDE_DIR SQLITE_LIBRARIES)
 
 # show the SQLITE_INCLUDE_DIR and SQLITE_LIBRARIES variables only in the advanced view
-MARK_AS_ADVANCED(SQLITE_INCLUDE_DIR SQLITE_LIBRARIES )
-
+mark_as_advanced(SQLITE_INCLUDE_DIR SQLITE_LIBRARIES)