Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
André Pedro
CMake
Commits
6ff05e39
Commit
6ff05e39
authored
18 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Adding option to use system-installed third-party libraries. This addresses bug#3653.
parent
f91b3c1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap
+12
-1
12 additions, 1 deletion
bootstrap
with
12 additions
and
1 deletion
bootstrap
+
12
−
1
View file @
6ff05e39
...
...
@@ -36,6 +36,7 @@ cmake_data_dir="/share/cmake-${cmake_version}"
cmake_doc_dir
=
"/doc/cmake-
${
cmake_version
}
"
cmake_man_dir
=
"/man"
cmake_init_file
=
""
cmake_bootstrap_system_libs
=
""
# Determine whether this is a MinGW environment.
if
echo
"
${
cmake_system
}
"
|
grep
MINGW
>
/dev/null 2>&1
;
then
...
...
@@ -205,6 +206,10 @@ Configuration:
--parallel=n bootstrap cmake in parallel, where n is
number of nodes [1]
--init=FILE use FILE for cmake initialization
--system-libs use system-installed third-party libraries
(for use only by package maintainers)
--no-system-libs use cmake-provided third-party libraries
(default)
Directory and file names:
--prefix=PREFIX install files in tree rooted at PREFIX
...
...
@@ -444,6 +449,12 @@ for a in "$@"; do
if
echo
$a
|
grep
"^--init="
>
/dev/null 2> /dev/null
;
then
cmake_init_file
=
`
echo
$a
|
sed
"s/^--init=//"
`
fi
if
echo
$a
|
grep
"^--system-libs"
>
/dev/null 2> /dev/null
;
then
cmake_bootstrap_system_libs
=
"-DCMAKE_USE_SYSTEM_LIBRARIES=1"
fi
if
echo
$a
|
grep
"^--no-system-libs"
>
/dev/null 2> /dev/null
;
then
cmake_bootstrap_system_libs
=
"-DCMAKE_USE_SYSTEM_LIBRARIES=0"
fi
if
echo
$a
|
grep
"^--help"
>
/dev/null 2> /dev/null
;
then
cmake_usage
fi
...
...
@@ -1287,7 +1298,7 @@ export CXX
export
MAKE
# Run bootstrap CMake to configure real CMake
"
${
cmake_bootstrap_dir
}
/cmake"
"
${
cmake_source_dir
}
"
"-C
${
cmake_bootstrap_dir
}
/InitialCacheFlags.cmake"
"-G
${
cmake_bootstrap_generator
}
"
"
${
cmake_bootstrap_dir
}
/cmake"
"
${
cmake_source_dir
}
"
"-C
${
cmake_bootstrap_dir
}
/InitialCacheFlags.cmake"
"-G
${
cmake_bootstrap_generator
}
"
${
cmake_bootstrap_system_libs
}
RES
=
$?
if
[
"
${
RES
}
"
-ne
"0"
]
;
then
cmake_error 11
"Problem while running initial CMake"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment