Server IP : 104.21.38.3 / Your IP : 172.68.164.116 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/extra/libevent/libevent-2.1.11-stable/cmake/ |
Upload File : |
# This module defines the following variables utilizing # git to determine the parent tag. And if found the macro # will attempt to parse them in the github tag fomat # # Useful for auto-versioning in our CMakeLists # # EVENT_GIT___VERSION_MAJOR - Major version. # EVENT_GIT___VERSION_MINOR - Minor version # EVENT_GIT___VERSION_STAGE - Stage version # # Example usage: # # event_fuzzy_version_from_git() # message("Libvent major=${EVENT_GIT___VERSION_MAJOR}") # message(" minor=${EVENT_GIT___VERSION_MINOR}") # message(" patch=${EVENT_GIT___VERSION_PATCH}") # message(" stage=${EVENT_GIT___VERSION_STAGE}") # endif() include(FindGit) macro(event_fuzzy_version_from_git) # set our defaults. set(EVENT_GIT___VERSION_MAJOR 2) set(EVENT_GIT___VERSION_MINOR 1) set(EVENT_GIT___VERSION_PATCH 11) set(EVENT_GIT___VERSION_STAGE "stable") ## find_package(Git) ## ## if (GIT_FOUND) ## execute_process( ## COMMAND ## ${GIT_EXECUTABLE} describe --abbrev=0 ## WORKING_DIRECTORY ## ${PROJECT_SOURCE_DIR} ## RESULT_VARIABLE ## GITRET ## OUTPUT_VARIABLE ## GITVERSION ## OUTPUT_STRIP_TRAILING_WHITESPACE ## ) ## ## string(REGEX REPLACE "[\\._-]" ";" VERSION_LIST "${GITVERSION}") ## list(LENGTH VERSION_LIST VERSION_LIST_LENGTH) ## ## if ((GITRET EQUAL 0) AND (VERSION_LIST_LENGTH EQUAL 5)) ## list(GET VERSION_LIST 1 _MAJOR) ## list(GET VERSION_LIST 2 _MINOR) ## list(GET VERSION_LIST 3 _PATCH) ## list(GET VERSION_LIST 4 _STAGE) ## ## set(_DEFAULT_VERSION "${EVENT_GIT___VERSION_MAJOR}.${EVENT_GIT___VERSION_MINOR}.${EVENT_GIT___VERSION_PATCH}-${EVENT_GIT___VERSION_STAGE}") ## set(_GIT_VERSION "${_MAJOR}.${_MINOR}.${_PATCH}-${_STAGE}") ## ## if (${_DEFAULT_VERSION} VERSION_LESS ${_GIT_VERSION}) ## set(EVENT_GIT___VERSION_MAJOR ${_MAJOR}) ## set(EVENT_GIT___VERSION_MINOR ${_MINOR}) ## set(EVENT_GIT___VERSION_PATCH ${_PATCH}) ## set(EVENT_GIT___VERSION_STAGE ${_STAGE}) ## endif() ## endif() ## endif() endmacro()