aboutsummaryrefslogtreecommitdiff
path: root/ports/liblsl/hardcode-version.patch
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2019-02-27 11:56:29 -0800
committerPhil Christensen <philc@microsoft.com>2019-02-27 11:56:29 -0800
commit2cc7fa27e57f1129d1f37ccb009563509ca25720 (patch)
tree3c75e423b71e54f6f65ec085c5d3d190d9d0d1a9 /ports/liblsl/hardcode-version.patch
parent3830517ec7519b823f5d8c404710889c6bd00278 (diff)
parent2dfa568d186e4f0d199040929f9b3e44f27c8943 (diff)
downloadvcpkg-2cc7fa27e57f1129d1f37ccb009563509ca25720.tar.gz
vcpkg-2cc7fa27e57f1129d1f37ccb009563509ca25720.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/5254
Diffstat (limited to 'ports/liblsl/hardcode-version.patch')
-rw-r--r--ports/liblsl/hardcode-version.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/ports/liblsl/hardcode-version.patch b/ports/liblsl/hardcode-version.patch
new file mode 100644
index 000000000..e7343271e
--- /dev/null
+++ b/ports/liblsl/hardcode-version.patch
@@ -0,0 +1,31 @@
+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})
+