blob: b37c19a9ebd18e2b7fd10f7ecfcde5d0db26daba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- CMakeLists.txt.orig 2019-09-19 13:59:21 UTC
+++ CMakeLists.txt
@@ -31,7 +31,7 @@ endif()
if (NOT RSTUDIO_SESSION_WIN32)
# dynamically configure SOURCE with the git revision hash
INSTALL(CODE "
- execute_process(COMMAND git rev-parse HEAD
+ execute_process(COMMAND printf ${FREEBSD_PORT_VERSION}
WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\"
OUTPUT_VARIABLE RSTUDIO_GIT_REVISION_HASH)
configure_file (\"${CMAKE_CURRENT_SOURCE_DIR}/SOURCE.in\"
@@ -40,6 +40,7 @@ if (NOT RSTUDIO_SESSION_WIN32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/VERSION.in
${CMAKE_CURRENT_BINARY_DIR}/VERSION)
+ set(RSTUDIO_VERSION ${FREEBSD_RSTUDIO_VERSION})
# install root docs
include(CMakeInstallDocs.txt)
|