mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
Use path relative to Python binary
This commit is contained in:
parent
8d4ec8562d
commit
fc08313925
@ -49,7 +49,6 @@ function(add_documentation_target)
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${target}_done
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${out_dir} &&
|
||||
FDB_VERSIONS_TARGET_PATH=${CMAKE_BINARY_DIR}/versions.target
|
||||
${python_command} ${SPHINX_COMMAND} -W -b ${target}
|
||||
-d ${doctree} -c ${sphinx_dir}
|
||||
${sphinx_dir}/source
|
||||
|
@ -53,7 +53,7 @@ copyright = u'2013-2021 Apple, Inc and the FoundationDB project authors'
|
||||
|
||||
# Load the version information from 'versions.target'
|
||||
import xml.etree.ElementTree as ET
|
||||
version_path = os.environ['FDB_VERSIONS_TARGET_PATH']
|
||||
version_path = os.path.join(os.path.dirname(sys.executable), '..', '..', '..', 'versions.target')
|
||||
tree = ET.parse(version_path)
|
||||
root = tree.getroot()
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(OutDir)versions.target" />
|
||||
<Import Project="$(SolutionDir)versions.target" />
|
||||
<PropertyGroup Condition="'$(Release)' != 'true' ">
|
||||
<SuppressValidation>true</SuppressValidation>
|
||||
<PreReleaseDecoration>-PRERELEASE</PreReleaseDecoration>
|
||||
|
Loading…
x
Reference in New Issue
Block a user