Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Merge requests
!755
Don't automatically download geometry database
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Don't automatically download geometry database
f.uhlig/cbmroot:disable_geometry_database
into
master
Overview
2
Commits
1
Pipelines
1
Changes
1
Merged
Florian Uhlig
requested to merge
f.uhlig/cbmroot:disable_geometry_database
into
master
3 years ago
Overview
2
Commits
1
Pipelines
1
Changes
1
Expand
Due to political reasons the download location can't be accessed currently.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2d1eb7ec
1 commit,
3 years ago
1 file
+
40
−
37
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
sim/transport/geosetup/CMakeLists.txt
+
40
−
37
Options
@@ -2,43 +2,46 @@
# the array .
# The extension is already found. Any number of sources could be listed here.
If
(
NOT EXISTS geodb.tar.gz AND DOWNLOAD_EXTERNALS
)
Message
(
STATUS
"Download geometry database"
)
FILE
(
DOWNLOAD http://cbmdb.jinr.ru/geometry/download_file.php?type=all&tag=all
${
CMAKE_BINARY_DIR
}
/geodb.tar.gz SHOW_PROGRESS
)
File
(
MAKE_DIRECTORY
${
CMAKE_BINARY_DIR
}
/geodb
)
File
(
MAKE_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/geometry/db
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E tar xvzf
${
CMAKE_BINARY_DIR
}
/geodb.tar.gz
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
/geodb
OUTPUT_VARIABLE TAR_OUTPUT
ERROR_VARIABLE TAR_OUTPUT
RESULT_VARIABLE TAR_RETURN_VALUE
)
if
(
NOT TAR_RETURN_VALUE EQUAL 0
)
message
(
FATAL_ERROR
"Error:
${
TAR_OUTPUT
}
"
)
endif
()
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_BINARY_DIR
}
/geodb/storage
${
CMAKE_SOURCE_DIR
}
/geometry/db
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
CMAKE_BINARY_DIR
}
/geodb/local.db
${
CMAKE_SOURCE_DIR
}
/geometry/db/
OUTPUT_VARIABLE COPY_OUTPUT
ERROR_VARIABLE COPY_OUTPUT
RESULT_VARIABLE COPY_RETURN_VALUE
)
if
(
NOT COPY_RETURN_VALUE EQUAL 0
)
message
(
"Error:
${
COPY_OUTPUT
}
"
)
endif
()
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E remove_directory
${
CMAKE_BINARY_DIR
}
/geodb/storage
)
Message
(
STATUS
"Download and unpacking done"
)
EndIf
()
# Don't download the geometry database any longer. The server isn't
# available in the moment
#If(NOT EXISTS geodb.tar.gz AND DOWNLOAD_EXTERNALS)
# Message(STATUS "Download geometry database")
# FILE(DOWNLOAD http://cbmdb.jinr.ru/geometry/download_file.php?type=all&tag=all ${CMAKE_BINARY_DIR}/geodb.tar.gz SHOW_PROGRESS)
# File(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/geodb)
# File(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/geometry/db)
# execute_process(
# COMMAND ${CMAKE_COMMAND} -E tar xvzf ${CMAKE_BINARY_DIR}/geodb.tar.gz
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/geodb
# OUTPUT_VARIABLE TAR_OUTPUT
# ERROR_VARIABLE TAR_OUTPUT
# RESULT_VARIABLE TAR_RETURN_VALUE
# )
# if (NOT TAR_RETURN_VALUE EQUAL 0)
# message(FATAL_ERROR "Error: ${TAR_OUTPUT}")
# endif()
# execute_process(
# COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_BINARY_DIR}/geodb/storage ${CMAKE_SOURCE_DIR}/geometry/db
# COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/geodb/local.db ${CMAKE_SOURCE_DIR}/geometry/db/
# OUTPUT_VARIABLE COPY_OUTPUT
# ERROR_VARIABLE COPY_OUTPUT
# RESULT_VARIABLE COPY_RETURN_VALUE
# )
# if (NOT COPY_RETURN_VALUE EQUAL 0)
# message("Error: ${COPY_OUTPUT}")
# endif()
# execute_process(
# COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/geodb/storage
# )
# Message(STATUS "Download and unpacking done")
#EndIf()
Set
(
INCLUDE_DIRECTORIES
Loading