mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-10-03 16:38:26 +03:00
CMake fixes: Generate project.h in binary dir, fix GetVersionFromFile for use as submodule. (#193)
* Use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR for project bound version string * marian-dev cmake fix * Generate project.h in binary dir * We don't want people asking about extra spaces
This commit is contained in:
parent
3e46e3391c
commit
dc2fb3d64e
2
3rd_party/marian-dev
vendored
2
3rd_party/marian-dev
vendored
@ -1 +1 @@
|
||||
Subproject commit ad92307e0f4ab66f75b03ddc87c48d28d07757f1
|
||||
Subproject commit 6087379f2ee7fb3062a82a6129ff81ca5fe56eed
|
@ -23,7 +23,7 @@ endif()
|
||||
|
||||
# Get current commit SHA from git
|
||||
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE PROJECT_VERSION_GIT_SHA
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Generate version file
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/project_version.h.in
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/project_version.h @ONLY)
|
||||
${CMAKE_CURRENT_BINARY_DIR}/project_version.h @ONLY)
|
||||
|
||||
add_library(bergamot-translator STATIC
|
||||
byte_array_util.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user