mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 14:48:09 +08:00
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 73e4a7a0..0f8e19f4 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -106,26 +106,6 @@ if(LSL_NO_FANCY_LIBNAME)
|
||
|
set(CMAKE_DEBUG_POSTFIX "")
|
||
|
endif()
|
||
|
|
||
|
-# try to find out which revision is currently checked out
|
||
|
-find_package(Git)
|
||
|
-if(GIT_FOUND)
|
||
|
- execute_process(
|
||
|
- COMMAND ${GIT_EXECUTABLE} describe --tags HEAD
|
||
|
- WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}"
|
||
|
- OUTPUT_VARIABLE lslgitrevision
|
||
|
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
- )
|
||
|
- execute_process(
|
||
|
- COMMAND ${GIT_EXECUTABLE} rev-parse --symbolic-full-name --abbrev-ref @
|
||
|
- WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}"
|
||
|
- OUTPUT_VARIABLE lslgitbranch
|
||
|
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
- )
|
||
|
- message(STATUS "Git version information: ${lslgitbranch}/${lslgitrevision}")
|
||
|
-else()
|
||
|
- set(lslgitrevision "unknown")
|
||
|
- set(lslgitbranch "unknown")
|
||
|
-endif()
|
||
|
set(LSL_VERSION_INFO "\"git:${lslgitrevision}/branch:${lslgitbranch}/build:${CMAKE_BUILD_TYPE}/compiler:${CMAKE_CXX_COMPILER_ID}-${CMAKE_CXX_COMPILER_VERSION}/boost:\" BOOST_LIB_VERSION")
|
||
|
set_source_files_properties("src/lsl_freefuncs_c.cpp" PROPERTIES COMPILE_DEFINITIONS LSL_LIBRARY_INFO_STR=${LSL_VERSION_INFO})
|
||
|
|