first commit
This commit is contained in:
13
extern/cmake/2.85/bin/Microsoft.VC90.CRT.manifest
vendored
Normal file
13
extern/cmake/2.85/bin/Microsoft.VC90.CRT.manifest
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<noInheritable/>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.VC90.CRT"
|
||||
version="9.0.21022.8"
|
||||
processorArchitecture="x86"
|
||||
publicKeyToken="1fc8b3b9a1e18e3b"
|
||||
/>
|
||||
<file name="msvcr90.dll" /> <file name="msvcp90.dll" /> <file name="msvcm90.dll" />
|
||||
</assembly>
|
||||
BIN
extern/cmake/2.85/bin/cmake-gui.exe
vendored
Normal file
BIN
extern/cmake/2.85/bin/cmake-gui.exe
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/cmake.exe
vendored
Normal file
BIN
extern/cmake/2.85/bin/cmake.exe
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/cmw9xcom.exe
vendored
Normal file
BIN
extern/cmake/2.85/bin/cmw9xcom.exe
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/cpack.exe
vendored
Normal file
BIN
extern/cmake/2.85/bin/cpack.exe
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/ctest.exe
vendored
Normal file
BIN
extern/cmake/2.85/bin/ctest.exe
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/msvcm90.dll
vendored
Normal file
BIN
extern/cmake/2.85/bin/msvcm90.dll
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/msvcp90.dll
vendored
Normal file
BIN
extern/cmake/2.85/bin/msvcp90.dll
vendored
Normal file
Binary file not shown.
BIN
extern/cmake/2.85/bin/msvcr90.dll
vendored
Normal file
BIN
extern/cmake/2.85/bin/msvcr90.dll
vendored
Normal file
Binary file not shown.
56
extern/cmake/2.85/doc/cmake-2.8/Copyright.txt
vendored
Normal file
56
extern/cmake/2.85/doc/cmake-2.8/Copyright.txt
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
CMake - Cross Platform Makefile Generator
|
||||
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the names of Kitware, Inc., the Insight Software Consortium,
|
||||
nor the names of their contributors may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
The above copyright and license notice applies to distributions of
|
||||
CMake in source and binary form. Some source files contain additional
|
||||
notices of original copyright by their contributors; see each source
|
||||
for details. Third-party software packages supplied with CMake under
|
||||
compatible licenses provide their own copyright notices documented in
|
||||
corresponding subdirectories.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
CMake was initially developed by Kitware with the following sponsorship:
|
||||
|
||||
* National Library of Medicine at the National Institutes of Health
|
||||
as part of the Insight Segmentation and Registration Toolkit (ITK).
|
||||
|
||||
* US National Labs (Los Alamos, Livermore, Sandia) ASC Parallel
|
||||
Visualization Initiative.
|
||||
|
||||
* National Alliance for Medical Image Computing (NAMIC) is funded by the
|
||||
National Institutes of Health through the NIH Roadmap for Medical Research,
|
||||
Grant U54 EB005149.
|
||||
|
||||
* Kitware, Inc.
|
||||
1001
extern/cmake/2.85/doc/cmake-2.8/cmake-commands.html
vendored
Normal file
1001
extern/cmake/2.85/doc/cmake-2.8/cmake-commands.html
vendored
Normal file
File diff suppressed because one or more lines are too long
3492
extern/cmake/2.85/doc/cmake-2.8/cmake-commands.txt
vendored
Normal file
3492
extern/cmake/2.85/doc/cmake-2.8/cmake-commands.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
184
extern/cmake/2.85/doc/cmake-2.8/cmake-compatcommands.html
vendored
Normal file
184
extern/cmake/2.85/doc/cmake-2.8/cmake-compatcommands.html
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>cmake-compatcommands - cmake</title></head><body>
|
||||
<h2><a name="section_Index">Master Index CMake 2.8.5</a></h2>
|
||||
<ul>
|
||||
<li><a href="#section_Introduction"><b>Introduction</b></a></li>
|
||||
<li><a href="#section_CompatibilityCommands"><b>Compatibility Commands</b></a></li>
|
||||
<li><a href="#section_Copyright"><b>Copyright</b></a></li>
|
||||
<li><a href="#section_SeeAlso"><b>See Also</b></a></li>
|
||||
</ul>
|
||||
<h2><a name="section_Introduction"/>Introduction</h2>
|
||||
<p>cmake-compatcommands - Reference of CMake compatibility commands.</p>
|
||||
|
||||
<h2><a name="section_CompatibilityCommands"/>Compatibility Commands</h2>
|
||||
<ul>
|
||||
<li><a href="#command:build_name"><b><code>build_name</code></b></a></li> <li><a href="#command:exec_program"><b><code>exec_program</code></b></a></li> <li><a href="#command:export_library_dependencies"><b><code>export_library_dependencies</code></b></a></li> <li><a href="#command:install_files"><b><code>install_files</code></b></a></li> <li><a href="#command:install_programs"><b><code>install_programs</code></b></a></li> <li><a href="#command:install_targets"><b><code>install_targets</code></b></a></li> <li><a href="#command:link_libraries"><b><code>link_libraries</code></b></a></li> <li><a href="#command:make_directory"><b><code>make_directory</code></b></a></li> <li><a href="#command:output_required_files"><b><code>output_required_files</code></b></a></li> <li><a href="#command:remove"><b><code>remove</code></b></a></li> <li><a href="#command:subdir_depends"><b><code>subdir_depends</code></b></a></li> <li><a href="#command:subdirs"><b><code>subdirs</code></b></a></li> <li><a href="#command:use_mangled_mesa"><b><code>use_mangled_mesa</code></b></a></li> <li><a href="#command:utility_source"><b><code>utility_source</code></b></a></li> <li><a href="#command:variable_requires"><b><code>variable_requires</code></b></a></li> <li><a href="#command:write_file"><b><code>write_file</code></b></a></li></ul>
|
||||
<pre> CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.</pre>
|
||||
|
||||
<p>This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;-)</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a name="command:build_name"><b><code>build_name</code></b></a>: Deprecated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.<br />
|
||||
<pre> build_name(variable)<br /></pre>
|
||||
<p>Sets the specified variable to a string representing the platform and compiler settings. These values are now available through the CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:exec_program"><b><code>exec_program</code></b></a>: Deprecated. Use the execute_process() command instead.<br />
|
||||
<p>Run an executable program during the processing of the CMakeList.txt file.<br /></p>
|
||||
<pre> exec_program(Executable [directory in which to run]<br /> [ARGS <arguments to executable>]<br /> [OUTPUT_VARIABLE <var>]<br /> [RETURN_VALUE <var>])<br /></pre>
|
||||
<p>The executable is run in the optionally specified directory. The executable can include arguments if it is double quoted, but it is better to use the optional ARGS argument to specify arguments to the program. This is because cmake will then be able to escape spaces in the executable path. An optional argument OUTPUT_VARIABLE specifies a variable in which to store the output. To capture the return value of the execution, provide a RETURN_VALUE. If OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr of the console running cmake.<br /></p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:export_library_dependencies"><b><code>export_library_dependencies</code></b></a>: Deprecated. Use INSTALL(EXPORT) or EXPORT command.<br />
|
||||
<p>This command generates an old-style library dependencies file. Projects requiring CMake 2.6 or later should not use the command. Use instead the install(EXPORT) command to help export targets from an installation tree and the export() command to export targets from a build tree.<br /></p>
|
||||
<p>The old-style library dependencies file does not take into account per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES target property.<br /></p>
|
||||
<pre> export_library_dependencies(<file> [APPEND])<br /></pre>
|
||||
<p>Create a file named <file> that can be included into a CMake listfile with the INCLUDE command. The file will contain a number of SET commands that will set all the variables needed for library dependency information. This should be the last command in the top level CMakeLists.txt file of the project. If the APPEND option is specified, the SET commands will be appended to the given file instead of replacing it.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:install_files"><b><code>install_files</code></b></a>: Deprecated. Use the install(FILES ) command instead.<br />
|
||||
<p>This command has been superceded by the install command. It is provided for compatibility with older CMake code. The FILES form is directly replaced by the FILES form of the install command. The regexp form can be expressed more clearly using the GLOB form of the file command.<br /></p>
|
||||
<pre> install_files(<dir> extension file file ...)<br /></pre>
|
||||
<p>Create rules to install the listed files with the given extension into the given directory. Only files existing in the current source tree or its corresponding location in the binary tree may be listed. If a file specified already has an extension, that extension will be removed first. This is useful for providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. A typical extension is '.h'.<br /></p>
|
||||
<pre> install_files(<dir> regexp)<br /></pre>
|
||||
<p>Any files in the current source directory that match the regular expression will be installed.<br /></p>
|
||||
<pre> install_files(<dir> FILES file file ...)<br /></pre>
|
||||
<p>Any files listed after the FILES keyword will be installed explicitly from the names given. Full paths are allowed in this form.<br /></p>
|
||||
<p>The directory <dir> is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:install_programs"><b><code>install_programs</code></b></a>: Deprecated. Use the install(PROGRAMS ) command instead.<br />
|
||||
<p>This command has been superceded by the install command. It is provided for compatibility with older CMake code. The FILES form is directly replaced by the PROGRAMS form of the INSTALL command. The regexp form can be expressed more clearly using the GLOB form of the FILE command.<br /></p>
|
||||
<pre> install_programs(<dir> file1 file2 [file3 ...])<br /> install_programs(<dir> FILES file1 [file2 ...])<br /></pre>
|
||||
<p>Create rules to install the listed programs into the given directory. Use the FILES argument to guarantee that the file list version of the command will be used even when there is only one argument.<br /></p>
|
||||
<pre> install_programs(<dir> regexp)<br /></pre>
|
||||
<p>In the second form any program in the current source directory that matches the regular expression will be installed.<br /></p>
|
||||
<p>This command is intended to install programs that are not built by cmake, such as shell scripts. See the TARGETS form of the INSTALL command to create installation rules for targets built by cmake.<br /></p>
|
||||
<p>The directory <dir> is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:install_targets"><b><code>install_targets</code></b></a>: Deprecated. Use the install(TARGETS ) command instead.<br />
|
||||
<p>This command has been superceded by the install command. It is provided for compatibility with older CMake code.<br /></p>
|
||||
<pre> install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)<br /></pre>
|
||||
<p>Create rules to install the listed targets into the given directory. The directory <dir> is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX. If RUNTIME_DIRECTORY is specified, then on systems with special runtime files (Windows DLL), the files will be copied to that directory.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:link_libraries"><b><code>link_libraries</code></b></a>: Deprecated. Use the target_link_libraries() command instead.<br />
|
||||
<p>Link libraries to all targets added later.<br /></p>
|
||||
<pre> link_libraries(library1 <debug | optimized> library2 ...)<br /></pre>
|
||||
<p>Specify a list of libraries to be linked into any following targets (typically added with the add_executable or add_library calls). This command is passed down to all subdirectories. The debug and optimized strings may be used to indicate that the next library listed is to be used only for that specific type of build.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:make_directory"><b><code>make_directory</code></b></a>: Deprecated. Use the file(MAKE_DIRECTORY ) command instead.<br />
|
||||
<pre> make_directory(directory)<br /></pre>
|
||||
<p>Creates the specified directory. Full paths should be given. Any parent directories that do not exist will also be created. Use with care.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:output_required_files"><b><code>output_required_files</code></b></a>: Deprecated. Approximate C preprocessor dependency scanning.<br />
|
||||
<p>This command exists only because ancient CMake versions provided it. CMake handles preprocessor dependency scanning automatically using a more advanced scanner.<br /></p>
|
||||
<pre> output_required_files(srcfile outputfile)<br /></pre>
|
||||
<p>Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:remove"><b><code>remove</code></b></a>: Deprecated. Use the list(REMOVE_ITEM ) command instead.<br />
|
||||
<pre> remove(VAR VALUE VALUE ...)<br /></pre>
|
||||
<p>Removes VALUE from the variable VAR. This is typically used to remove entries from a vector (e.g. semicolon separated list). VALUE is expanded.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:subdir_depends"><b><code>subdir_depends</code></b></a>: Deprecated. Does nothing.<br />
|
||||
<pre> subdir_depends(subdir dep1 dep2 ...)<br /></pre>
|
||||
<p>Does not do anything. This command used to help projects order parallel builds correctly. This functionality is now automatic.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:subdirs"><b><code>subdirs</code></b></a>: Deprecated. Use the add_subdirectory() command instead.<br />
|
||||
<p>Add a list of subdirectories to the build.<br /></p>
|
||||
<pre> subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...]<br /> [PREORDER] )<br /></pre>
|
||||
<p>Add a list of subdirectories to the build. The add_subdirectory command should be used instead of subdirs although subdirs will still work. This will cause any CMakeLists.txt files in the sub directories to be processed by CMake. Any directories after the PREORDER flag are traversed first by makefile builds, the PREORDER flag has no effect on IDE projects. Any directories after the EXCLUDE_FROM_ALL marker will not be included in the top level makefile or project file. This is useful for having CMake create makefiles or projects for a set of examples in a project. You would want CMake to generate makefiles or project files for all the examples at the same time, but you would not want them to show up in the top level project or be built each time make is run from the top.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:use_mangled_mesa"><b><code>use_mangled_mesa</code></b></a>: Copy mesa headers for use in combination with system GL.<br />
|
||||
<pre> use_mangled_mesa(PATH_TO_MESA OUTPUT_DIRECTORY)<br /></pre>
|
||||
<p>The path to mesa includes, should contain gl_mangle.h. The mesa headers are copied to the specified output directory. This allows mangled mesa headers to override other GL headers by being added to the include directory path earlier.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:utility_source"><b><code>utility_source</code></b></a>: Specify the source tree of a third-party utility.<br />
|
||||
<pre> utility_source(cache_entry executable_name<br /> path_to_source [file1 file2 ...])<br /></pre>
|
||||
<p>When a third-party utility's source is included in the distribution, this command specifies its location and name. The cache entry will not be set unless the path_to_source and all listed files exist. It is assumed that the source tree of the utility will have been built before it is needed.<br /></p>
|
||||
<p>When cross compiling CMake will print a warning if a utility_source() command is executed, because in many cases it is used to build an executable which is executed later on. This doesn't work when cross compiling, since the executable can run only on their target platform. So in this case the cache entry has to be adjusted manually so it points to an executable which is runnable on the build host.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:variable_requires"><b><code>variable_requires</code></b></a>: Deprecated. Use the if() command instead.<br />
|
||||
<p>Assert satisfaction of an option's required variables.<br /></p>
|
||||
<pre> variable_requires(TEST_VARIABLE RESULT_VARIABLE<br /> REQUIRED_VARIABLE1<br /> REQUIRED_VARIABLE2 ...)<br /></pre>
|
||||
<p>The first argument (TEST_VARIABLE) is the name of the variable to be tested, if that variable is false nothing else is done. If TEST_VARIABLE is true, then the next argument (RESULT_VARIABLE) is a variable that is set to true if all the required variables are set. The rest of the arguments are variables that must be true or not set to NOTFOUND to avoid an error. If any are not true, an error is reported.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="command:write_file"><b><code>write_file</code></b></a>: Deprecated. Use the file(WRITE ) command instead.<br />
|
||||
<pre> write_file(filename "message to write"... [APPEND])<br /></pre>
|
||||
<p>The first argument is the file name, the rest of the arguments are messages to write. If the argument APPEND is specified, then the message will be appended.<br /></p>
|
||||
<p>NOTE 1: file(WRITE ... and file(APPEND ... do exactly the same as this one but add some more functionality.<br /></p>
|
||||
<p>NOTE 2: When using write_file the produced file cannot be used as an input to CMake (CONFIGURE_FILE, source file ...) because it will lead to an infinite loop. Use configure_file if you want to generate input files to CMake.</p>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h2><a name="section_Copyright"/>Copyright</h2>
|
||||
<p>Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.</p>
|
||||
|
||||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
||||
|
||||
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>
|
||||
|
||||
<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
||||
|
||||
<p>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>
|
||||
|
||||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
||||
|
||||
<h2><a name="section_SeeAlso"/>See Also</h2>
|
||||
<ul>
|
||||
<li><a href="#see:HomePage"><b><code>Home Page</code></b></a></li> <li><a href="#see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a></li> <li><a href="#see:OnlineDocumentation"><b><code>Online Documentation</code></b></a></li> <li><a href="#see:MailingList"><b><code>Mailing List</code></b></a></li></ul>
|
||||
<p>The following resources are available to get help using CMake:</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a name="see:HomePage"><b><code>Home Page</code></b></a>: <a href="http://www.cmake.org">http://www.cmake.org</a><br />
|
||||
<p>The primary starting point for learning about CMake.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a>: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br />
|
||||
<p>A Wiki is provided containing answers to frequently asked questions. </p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:OnlineDocumentation"><b><code>Online Documentation</code></b></a>: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br />
|
||||
<p>Links to available documentation may be found on this web page.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:MailingList"><b><code>Mailing List</code></b></a>: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br />
|
||||
<p>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <a href="http://www.cmake.org">http://www.cmake.org</a> before posting questions to the list.</p>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<p>Summary of helpful links:<br /></p>
|
||||
<pre> Home: <a href="http://www.cmake.org">http://www.cmake.org</a><br /> Docs: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br /> Mail: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br /> FAQ: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br /></pre>
|
||||
|
||||
</body></html>
|
||||
348
extern/cmake/2.85/doc/cmake-2.8/cmake-compatcommands.txt
vendored
Normal file
348
extern/cmake/2.85/doc/cmake-2.8/cmake-compatcommands.txt
vendored
Normal file
@@ -0,0 +1,348 @@
|
||||
cmake version 2.8.5
|
||||
------------------------------------------------------------------------------
|
||||
Introduction
|
||||
|
||||
cmake-compatcommands - Reference of CMake compatibility commands.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Compatibility Commands
|
||||
|
||||
CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.
|
||||
|
||||
This is the documentation for now obsolete listfile commands from previous
|
||||
CMake versions, which are still supported for compatibility reasons. You
|
||||
should instead use the newer, faster and shinier new commands. ;-)
|
||||
|
||||
build_name
|
||||
Deprecated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.
|
||||
|
||||
build_name(variable)
|
||||
|
||||
Sets the specified variable to a string representing the platform and
|
||||
compiler settings. These values are now available through the
|
||||
CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.
|
||||
|
||||
exec_program
|
||||
Deprecated. Use the execute_process() command instead.
|
||||
|
||||
Run an executable program during the processing of the CMakeList.txt
|
||||
file.
|
||||
|
||||
exec_program(Executable [directory in which to run]
|
||||
[ARGS <arguments to executable>]
|
||||
[OUTPUT_VARIABLE <var>]
|
||||
[RETURN_VALUE <var>])
|
||||
|
||||
The executable is run in the optionally specified directory. The
|
||||
executable can include arguments if it is double quoted, but it is
|
||||
better to use the optional ARGS argument to specify arguments to the
|
||||
program. This is because cmake will then be able to escape spaces in
|
||||
the executable path. An optional argument OUTPUT_VARIABLE specifies a
|
||||
variable in which to store the output. To capture the return value of
|
||||
the execution, provide a RETURN_VALUE. If OUTPUT_VARIABLE is
|
||||
specified, then no output will go to the stdout/stderr of the console
|
||||
running cmake.
|
||||
|
||||
|
||||
export_library_dependencies
|
||||
Deprecated. Use INSTALL(EXPORT) or EXPORT command.
|
||||
|
||||
This command generates an old-style library dependencies file.
|
||||
Projects requiring CMake 2.6 or later should not use the command. Use
|
||||
instead the install(EXPORT) command to help export targets from an
|
||||
installation tree and the export() command to export targets from a
|
||||
build tree.
|
||||
|
||||
The old-style library dependencies file does not take into account
|
||||
per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES
|
||||
target property.
|
||||
|
||||
export_library_dependencies(<file> [APPEND])
|
||||
|
||||
Create a file named <file> that can be included into a CMake listfile
|
||||
with the INCLUDE command. The file will contain a number of SET
|
||||
commands that will set all the variables needed for library dependency
|
||||
information. This should be the last command in the top level
|
||||
CMakeLists.txt file of the project. If the APPEND option is
|
||||
specified, the SET commands will be appended to the given file instead
|
||||
of replacing it.
|
||||
|
||||
install_files
|
||||
Deprecated. Use the install(FILES ) command instead.
|
||||
|
||||
This command has been superceded by the install command. It is
|
||||
provided for compatibility with older CMake code. The FILES form is
|
||||
directly replaced by the FILES form of the install command. The
|
||||
regexp form can be expressed more clearly using the GLOB form of the
|
||||
file command.
|
||||
|
||||
install_files(<dir> extension file file ...)
|
||||
|
||||
Create rules to install the listed files with the given extension into
|
||||
the given directory. Only files existing in the current source tree
|
||||
or its corresponding location in the binary tree may be listed. If a
|
||||
file specified already has an extension, that extension will be
|
||||
removed first. This is useful for providing lists of source files
|
||||
such as foo.cxx when you want the corresponding foo.h to be installed.
|
||||
A typical extension is '.h'.
|
||||
|
||||
install_files(<dir> regexp)
|
||||
|
||||
Any files in the current source directory that match the regular
|
||||
expression will be installed.
|
||||
|
||||
install_files(<dir> FILES file file ...)
|
||||
|
||||
Any files listed after the FILES keyword will be installed explicitly
|
||||
from the names given. Full paths are allowed in this form.
|
||||
|
||||
The directory <dir> is relative to the installation prefix, which is
|
||||
stored in the variable CMAKE_INSTALL_PREFIX.
|
||||
|
||||
install_programs
|
||||
Deprecated. Use the install(PROGRAMS ) command instead.
|
||||
|
||||
This command has been superceded by the install command. It is
|
||||
provided for compatibility with older CMake code. The FILES form is
|
||||
directly replaced by the PROGRAMS form of the INSTALL command. The
|
||||
regexp form can be expressed more clearly using the GLOB form of the
|
||||
FILE command.
|
||||
|
||||
install_programs(<dir> file1 file2 [file3 ...])
|
||||
install_programs(<dir> FILES file1 [file2 ...])
|
||||
|
||||
Create rules to install the listed programs into the given directory.
|
||||
Use the FILES argument to guarantee that the file list version of the
|
||||
command will be used even when there is only one argument.
|
||||
|
||||
install_programs(<dir> regexp)
|
||||
|
||||
In the second form any program in the current source directory that
|
||||
matches the regular expression will be installed.
|
||||
|
||||
This command is intended to install programs that are not built by
|
||||
cmake, such as shell scripts. See the TARGETS form of the INSTALL
|
||||
command to create installation rules for targets built by cmake.
|
||||
|
||||
The directory <dir> is relative to the installation prefix, which is
|
||||
stored in the variable CMAKE_INSTALL_PREFIX.
|
||||
|
||||
install_targets
|
||||
Deprecated. Use the install(TARGETS ) command instead.
|
||||
|
||||
This command has been superceded by the install command. It is
|
||||
provided for compatibility with older CMake code.
|
||||
|
||||
install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)
|
||||
|
||||
Create rules to install the listed targets into the given directory.
|
||||
The directory <dir> is relative to the installation prefix, which is
|
||||
stored in the variable CMAKE_INSTALL_PREFIX. If RUNTIME_DIRECTORY is
|
||||
specified, then on systems with special runtime files (Windows DLL),
|
||||
the files will be copied to that directory.
|
||||
|
||||
link_libraries
|
||||
Deprecated. Use the target_link_libraries() command instead.
|
||||
|
||||
Link libraries to all targets added later.
|
||||
|
||||
link_libraries(library1 <debug | optimized> library2 ...)
|
||||
|
||||
Specify a list of libraries to be linked into any following targets
|
||||
(typically added with the add_executable or add_library calls). This
|
||||
command is passed down to all subdirectories. The debug and optimized
|
||||
strings may be used to indicate that the next library listed is to be
|
||||
used only for that specific type of build.
|
||||
|
||||
make_directory
|
||||
Deprecated. Use the file(MAKE_DIRECTORY ) command instead.
|
||||
|
||||
make_directory(directory)
|
||||
|
||||
Creates the specified directory. Full paths should be given. Any
|
||||
parent directories that do not exist will also be created. Use with
|
||||
care.
|
||||
|
||||
output_required_files
|
||||
Deprecated. Approximate C preprocessor dependency scanning.
|
||||
|
||||
This command exists only because ancient CMake versions provided it.
|
||||
CMake handles preprocessor dependency scanning automatically using a
|
||||
more advanced scanner.
|
||||
|
||||
output_required_files(srcfile outputfile)
|
||||
|
||||
Outputs a list of all the source files that are required by the
|
||||
specified srcfile. This list is written into outputfile. This is
|
||||
similar to writing out the dependencies for srcfile except that it
|
||||
jumps from .h files into .cxx, .c and .cpp files if possible.
|
||||
|
||||
remove
|
||||
Deprecated. Use the list(REMOVE_ITEM ) command instead.
|
||||
|
||||
remove(VAR VALUE VALUE ...)
|
||||
|
||||
Removes VALUE from the variable VAR. This is typically used to remove
|
||||
entries from a vector (e.g. semicolon separated list). VALUE is
|
||||
expanded.
|
||||
|
||||
subdir_depends
|
||||
Deprecated. Does nothing.
|
||||
|
||||
subdir_depends(subdir dep1 dep2 ...)
|
||||
|
||||
Does not do anything. This command used to help projects order
|
||||
parallel builds correctly. This functionality is now automatic.
|
||||
|
||||
subdirs
|
||||
Deprecated. Use the add_subdirectory() command instead.
|
||||
|
||||
Add a list of subdirectories to the build.
|
||||
|
||||
subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...]
|
||||
[PREORDER] )
|
||||
|
||||
Add a list of subdirectories to the build. The add_subdirectory
|
||||
command should be used instead of subdirs although subdirs will still
|
||||
work. This will cause any CMakeLists.txt files in the sub directories
|
||||
to be processed by CMake. Any directories after the PREORDER flag are
|
||||
traversed first by makefile builds, the PREORDER flag has no effect on
|
||||
IDE projects. Any directories after the EXCLUDE_FROM_ALL marker will
|
||||
not be included in the top level makefile or project file. This is
|
||||
useful for having CMake create makefiles or projects for a set of
|
||||
examples in a project. You would want CMake to generate makefiles or
|
||||
project files for all the examples at the same time, but you would not
|
||||
want them to show up in the top level project or be built each time
|
||||
make is run from the top.
|
||||
|
||||
use_mangled_mesa
|
||||
Copy mesa headers for use in combination with system GL.
|
||||
|
||||
use_mangled_mesa(PATH_TO_MESA OUTPUT_DIRECTORY)
|
||||
|
||||
The path to mesa includes, should contain gl_mangle.h. The mesa
|
||||
headers are copied to the specified output directory. This allows
|
||||
mangled mesa headers to override other GL headers by being added to
|
||||
the include directory path earlier.
|
||||
|
||||
utility_source
|
||||
Specify the source tree of a third-party utility.
|
||||
|
||||
utility_source(cache_entry executable_name
|
||||
path_to_source [file1 file2 ...])
|
||||
|
||||
When a third-party utility's source is included in the distribution,
|
||||
this command specifies its location and name. The cache entry will
|
||||
not be set unless the path_to_source and all listed files exist. It
|
||||
is assumed that the source tree of the utility will have been built
|
||||
before it is needed.
|
||||
|
||||
When cross compiling CMake will print a warning if a utility_source()
|
||||
command is executed, because in many cases it is used to build an
|
||||
executable which is executed later on. This doesn't work when cross
|
||||
compiling, since the executable can run only on their target platform.
|
||||
So in this case the cache entry has to be adjusted manually so it
|
||||
points to an executable which is runnable on the build host.
|
||||
|
||||
variable_requires
|
||||
Deprecated. Use the if() command instead.
|
||||
|
||||
Assert satisfaction of an option's required variables.
|
||||
|
||||
variable_requires(TEST_VARIABLE RESULT_VARIABLE
|
||||
REQUIRED_VARIABLE1
|
||||
REQUIRED_VARIABLE2 ...)
|
||||
|
||||
The first argument (TEST_VARIABLE) is the name of the variable to be
|
||||
tested, if that variable is false nothing else is done. If
|
||||
TEST_VARIABLE is true, then the next argument (RESULT_VARIABLE) is a
|
||||
variable that is set to true if all the required variables are set.
|
||||
The rest of the arguments are variables that must be true or not set
|
||||
to NOTFOUND to avoid an error. If any are not true, an error is
|
||||
reported.
|
||||
|
||||
write_file
|
||||
Deprecated. Use the file(WRITE ) command instead.
|
||||
|
||||
write_file(filename "message to write"... [APPEND])
|
||||
|
||||
The first argument is the file name, the rest of the arguments are
|
||||
messages to write. If the argument APPEND is specified, then the
|
||||
message will be appended.
|
||||
|
||||
NOTE 1: file(WRITE ... and file(APPEND ... do exactly the same as
|
||||
this one but add some more functionality.
|
||||
|
||||
NOTE 2: When using write_file the produced file cannot be used as an
|
||||
input to CMake (CONFIGURE_FILE, source file ...) because it will lead
|
||||
to an infinite loop. Use configure_file if you want to generate input
|
||||
files to CMake.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Copyright
|
||||
|
||||
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights
|
||||
reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
Neither the names of Kitware, Inc., the Insight Software Consortium, nor the
|
||||
names of their contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
See Also
|
||||
|
||||
The following resources are available to get help using CMake:
|
||||
|
||||
Home Page
|
||||
http://www.cmake.org
|
||||
|
||||
The primary starting point for learning about CMake.
|
||||
|
||||
Frequently Asked Questions
|
||||
http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
A Wiki is provided containing answers to frequently asked questions.
|
||||
|
||||
Online Documentation
|
||||
http://www.cmake.org/HTML/Documentation.html
|
||||
|
||||
Links to available documentation may be found on this web page.
|
||||
|
||||
Mailing List
|
||||
http://www.cmake.org/HTML/MailingLists.html
|
||||
|
||||
For help and discussion about using cmake, a mailing list is provided
|
||||
at cmake@cmake.org. The list is member-post-only but one may sign up
|
||||
on the CMake web page. Please first read the full documentation at
|
||||
http://www.cmake.org before posting questions to the list.
|
||||
|
||||
Summary of helpful links:
|
||||
|
||||
Home: http://www.cmake.org
|
||||
Docs: http://www.cmake.org/HTML/Documentation.html
|
||||
Mail: http://www.cmake.org/HTML/MailingLists.html
|
||||
FAQ: http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
|
||||
8264
extern/cmake/2.85/doc/cmake-2.8/cmake-gui.docbook
vendored
Normal file
8264
extern/cmake/2.85/doc/cmake-2.8/cmake-gui.docbook
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5581
extern/cmake/2.85/doc/cmake-2.8/cmake-gui.html
vendored
Normal file
5581
extern/cmake/2.85/doc/cmake-2.8/cmake-gui.html
vendored
Normal file
File diff suppressed because one or more lines are too long
13886
extern/cmake/2.85/doc/cmake-2.8/cmake-gui.txt
vendored
Normal file
13886
extern/cmake/2.85/doc/cmake-2.8/cmake-gui.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2517
extern/cmake/2.85/doc/cmake-2.8/cmake-modules.html
vendored
Normal file
2517
extern/cmake/2.85/doc/cmake-2.8/cmake-modules.html
vendored
Normal file
File diff suppressed because one or more lines are too long
7079
extern/cmake/2.85/doc/cmake-2.8/cmake-modules.txt
vendored
Normal file
7079
extern/cmake/2.85/doc/cmake-2.8/cmake-modules.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
215
extern/cmake/2.85/doc/cmake-2.8/cmake-policies.html
vendored
Normal file
215
extern/cmake/2.85/doc/cmake-2.8/cmake-policies.html
vendored
Normal file
@@ -0,0 +1,215 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>cmake-policies - cmake</title></head><body>
|
||||
<h2><a name="section_Index">Master Index CMake 2.8.5</a></h2>
|
||||
<ul>
|
||||
<li><a href="#section_Introduction"><b>Introduction</b></a></li>
|
||||
<li><a href="#section_Description"><b>Description</b></a></li>
|
||||
<li><a href="#section_Policies"><b>Policies</b></a></li>
|
||||
<li><a href="#section_Copyright"><b>Copyright</b></a></li>
|
||||
<li><a href="#section_SeeAlso"><b>See Also</b></a></li>
|
||||
</ul>
|
||||
<h2><a name="section_Introduction"/>Introduction</h2>
|
||||
<p>cmake-policies - Reference of CMake policies.</p>
|
||||
|
||||
<h2><a name="section_Description"/>Description</h2>
|
||||
<p>The "cmake" executable is the CMake command-line interface. It may be used to configure projects in scripts. Project configuration settings may be specified on the command line with the -D option. The -i option will cause cmake to interactively prompt for such settings.</p>
|
||||
|
||||
<p>CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.</p>
|
||||
|
||||
<h2><a name="section_Policies"/>Policies</h2>
|
||||
<ul>
|
||||
<li><a href="#policy:CMP0000"><b><code>CMP0000</code></b></a></li> <li><a href="#policy:CMP0001"><b><code>CMP0001</code></b></a></li> <li><a href="#policy:CMP0002"><b><code>CMP0002</code></b></a></li> <li><a href="#policy:CMP0003"><b><code>CMP0003</code></b></a></li> <li><a href="#policy:CMP0004"><b><code>CMP0004</code></b></a></li> <li><a href="#policy:CMP0005"><b><code>CMP0005</code></b></a></li> <li><a href="#policy:CMP0006"><b><code>CMP0006</code></b></a></li> <li><a href="#policy:CMP0007"><b><code>CMP0007</code></b></a></li> <li><a href="#policy:CMP0008"><b><code>CMP0008</code></b></a></li> <li><a href="#policy:CMP0009"><b><code>CMP0009</code></b></a></li> <li><a href="#policy:CMP0010"><b><code>CMP0010</code></b></a></li> <li><a href="#policy:CMP0011"><b><code>CMP0011</code></b></a></li> <li><a href="#policy:CMP0012"><b><code>CMP0012</code></b></a></li> <li><a href="#policy:CMP0013"><b><code>CMP0013</code></b></a></li> <li><a href="#policy:CMP0014"><b><code>CMP0014</code></b></a></li> <li><a href="#policy:CMP0015"><b><code>CMP0015</code></b></a></li> <li><a href="#policy:CMP0016"><b><code>CMP0016</code></b></a></li> <li><a href="#policy:CMP0017"><b><code>CMP0017</code></b></a></li></ul>
|
||||
<ul>
|
||||
<li>
|
||||
<a name="policy:CMP0000"><b><code>CMP0000</code></b></a>: A minimum required CMake version must be specified.<br />
|
||||
<p>CMake requires that projects specify the version of CMake to which they have been written. This policy has been put in place so users trying to build the project may be told when they need to update their CMake. Specifying a version also helps the project build with CMake versions newer than that specified. Use the cmake_minimum_required command at the top of your main CMakeLists.txt file:<br /></p>
|
||||
<pre> cmake_minimum_required(VERSION <major>.<minor>)<br /></pre>
|
||||
<p>where "<major>.<minor>" is the version of CMake you want to support (such as "2.6"). The command will ensure that at least the given version of CMake is running and help newer versions be compatible with the project. See documentation of cmake_minimum_required for details.<br /></p>
|
||||
<p>Note that the command invocation must appear in the CMakeLists.txt file itself; a call in an included file is not sufficient. However, the cmake_policy command may be called to set policy CMP0000 to OLD or NEW behavior explicitly. The OLD behavior is to silently ignore the missing invocation. The NEW behavior is to issue an error instead of a warning. An included file may set CMP0000 explicitly to affect how this policy is enforced for the main CMakeLists.txt file.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0001"><b><code>CMP0001</code></b></a>: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.<br />
|
||||
<p>The OLD behavior is to check CMAKE_BACKWARDS_COMPATIBILITY and present it to the user. The NEW behavior is to ignore CMAKE_BACKWARDS_COMPATIBILITY completely.<br /></p>
|
||||
<p>In CMake 2.4 and below the variable CMAKE_BACKWARDS_COMPATIBILITY was used to request compatibility with earlier versions of CMake. In CMake 2.6 and above all compatibility issues are handled by policies and the cmake_policy command. However, CMake must still check CMAKE_BACKWARDS_COMPATIBILITY for projects written for CMake 2.4 and below.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0002"><b><code>CMP0002</code></b></a>: Logical target names must be globally unique.<br />
|
||||
<p>Targets names created with add_executable, add_library, or add_custom_target are logical build target names. Logical target names must be globally unique because:<br /></p>
|
||||
<pre> - Unique names may be referenced unambiguously both in CMake<br /> code and on make tool command lines.<br /> - Logical names are used by Xcode and VS IDE generators<br /> to produce meaningful project names for the targets.<br /></pre>
|
||||
<p>The logical name of executable and library targets does not have to correspond to the physical file names built. Consider using the OUTPUT_NAME target property to create two targets with the same physical name while keeping logical names distinct. Custom targets must simply have globally unique names (unless one uses the global property ALLOW_DUPLICATE_CUSTOM_TARGETS with a Makefiles generator).<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0003"><b><code>CMP0003</code></b></a>: Libraries linked via full path no longer produce linker search paths.<br />
|
||||
<p>This policy affects how libraries whose full paths are NOT known are found at link time, but was created due to a change in how CMake deals with libraries whose full paths are known. Consider the code<br /></p>
|
||||
<pre> target_link_libraries(myexe /path/to/libA.so)<br /></pre>
|
||||
<p>CMake 2.4 and below implemented linking to libraries whose full paths are known by splitting them on the link line into separate components consisting of the linker search path and the library name. The example code might have produced something like<br /></p>
|
||||
<pre> ... -L/path/to -lA ...<br /></pre>
|
||||
<p>in order to link to library A. An analysis was performed to order multiple link directories such that the linker would find library A in the desired location, but there are cases in which this does not work. CMake versions 2.6 and above use the more reliable approach of passing the full path to libraries directly to the linker in most cases. The example code now produces something like<br /></p>
|
||||
<pre> ... /path/to/libA.so ....<br /></pre>
|
||||
<p>Unfortunately this change can break code like<br /></p>
|
||||
<pre> target_link_libraries(myexe /path/to/libA.so B)<br /></pre>
|
||||
<p>where "B" is meant to find "/path/to/libB.so". This code is wrong because the user is asking the linker to find library B but has not provided a linker search path (which may be added with the link_directories command). However, with the old linking implementation the code would work accidentally because the linker search path added for library A allowed library B to be found.<br /></p>
|
||||
<p>In order to support projects depending on linker search paths added by linking to libraries with known full paths, the OLD behavior for this policy will add the linker search paths even though they are not needed for their own libraries. When this policy is set to OLD, CMake will produce a link line such as<br /></p>
|
||||
<pre> ... -L/path/to /path/to/libA.so -lB ...<br /></pre>
|
||||
<p>which will allow library B to be found as it was previously. When this policy is set to NEW, CMake will produce a link line such as<br /></p>
|
||||
<pre> ... /path/to/libA.so -lB ...<br /></pre>
|
||||
<p>which more accurately matches what the project specified.<br /></p>
|
||||
<p>The setting for this policy used when generating the link line is that in effect when the target is created by an add_executable or add_library command. For the example described above, the code<br /></p>
|
||||
<pre> cmake_policy(SET CMP0003 OLD) # or cmake_policy(VERSION 2.4)<br /> add_executable(myexe myexe.c)<br /> target_link_libraries(myexe /path/to/libA.so B)<br /></pre>
|
||||
<p>will work and suppress the warning for this policy. It may also be updated to work with the corrected linking approach:<br /></p>
|
||||
<pre> cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6)<br /> link_directories(/path/to) # needed to find library B<br /> add_executable(myexe myexe.c)<br /> target_link_libraries(myexe /path/to/libA.so B)<br /></pre>
|
||||
<p>Even better, library B may be specified with a full path:<br /></p>
|
||||
<pre> add_executable(myexe myexe.c)<br /> target_link_libraries(myexe /path/to/libA.so /path/to/libB.so)<br /></pre>
|
||||
<p>When all items on the link line have known paths CMake does not check this policy so it has no effect.<br /></p>
|
||||
<p>Note that the warning for this policy will be issued for at most one target. This avoids flooding users with messages for every target when setting the policy once will probably fix all targets.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0004"><b><code>CMP0004</code></b></a>: Libraries linked may not have leading or trailing whitespace.<br />
|
||||
<p>CMake versions 2.4 and below silently removed leading and trailing whitespace from libraries linked with code like<br /></p>
|
||||
<pre> target_link_libraries(myexe " A ")<br /></pre>
|
||||
<p>This could lead to subtle errors in user projects.<br /></p>
|
||||
<p>The OLD behavior for this policy is to silently remove leading and trailing whitespace. The NEW behavior for this policy is to diagnose the existence of such whitespace as an error. The setting for this policy used when checking the library names is that in effect when the target is created by an add_executable or add_library command.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0005"><b><code>CMP0005</code></b></a>: Preprocessor definition values are now escaped automatically.<br />
|
||||
<p>This policy determines whether or not CMake should generate escaped preprocessor definition values added via add_definitions. CMake versions 2.4 and below assumed that only trivial values would be given for macros in add_definitions calls. It did not attempt to escape non-trivial values such as string literals in generated build rules. CMake versions 2.6 and above support escaping of most values, but cannot assume the user has not added escapes already in an attempt to work around limitations in earlier versions.<br /></p>
|
||||
<p>The OLD behavior for this policy is to place definition values given to add_definitions directly in the generated build rules without attempting to escape anything. The NEW behavior for this policy is to generate correct escapes for all native build tools automatically. See documentation of the COMPILE_DEFINITIONS target property for limitations of the escaping implementation.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0006"><b><code>CMP0006</code></b></a>: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.<br />
|
||||
<p>This policy determines whether the install(TARGETS) command must be given a BUNDLE DESTINATION when asked to install a target with the MACOSX_BUNDLE property set. CMake 2.4 and below did not distinguish application bundles from normal executables when installing targets. CMake 2.6 provides a BUNDLE option to the install(TARGETS) command that specifies rules specific to application bundles on the Mac. Projects should use this option when installing a target with the MACOSX_BUNDLE property set.<br /></p>
|
||||
<p>The OLD behavior for this policy is to fall back to the RUNTIME DESTINATION if a BUNDLE DESTINATION is not given. The NEW behavior for this policy is to produce an error if a bundle target is installed without a BUNDLE DESTINATION.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0007"><b><code>CMP0007</code></b></a>: list command no longer ignores empty elements.<br />
|
||||
<p>This policy determines whether the list command will ignore empty elements in the list. CMake 2.4 and below list commands ignored all empty elements in the list. For example, a;b;;c would have length 3 and not 4. The OLD behavior for this policy is to ignore empty list elements. The NEW behavior for this policy is to correctly count empty elements in a list. <br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0008"><b><code>CMP0008</code></b></a>: Libraries linked by full-path must have a valid library file name.<br />
|
||||
<p>In CMake 2.4 and below it is possible to write code like<br /></p>
|
||||
<pre> target_link_libraries(myexe /full/path/to/somelib)<br /></pre>
|
||||
<p>where "somelib" is supposed to be a valid library file name such as "libsomelib.a" or "somelib.lib". For Makefile generators this produces an error at build time because the dependency on the full path cannot be found. For VS IDE and Xcode generators this used to work by accident because CMake would always split off the library directory and ask the linker to search for the library by name (-lsomelib or somelib.lib). Despite the failure with Makefiles, some projects have code like this and build only with VS and/or Xcode. This version of CMake prefers to pass the full path directly to the native build tool, which will fail in this case because it does not name a valid library file.<br /></p>
|
||||
<p>This policy determines what to do with full paths that do not appear to name a valid library file. The OLD behavior for this policy is to split the library name from the path and ask the linker to search for it. The NEW behavior for this policy is to trust the given path and pass it directly to the native build tool unchanged.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.1. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0009"><b><code>CMP0009</code></b></a>: FILE GLOB_RECURSE calls should not follow symlinks by default.<br />
|
||||
<p>In CMake 2.6.1 and below, FILE GLOB_RECURSE calls would follow through symlinks, sometimes coming up with unexpectedly large result sets because of symlinks to top level directories that contain hundreds of thousands of files.<br /></p>
|
||||
<p>This policy determines whether or not to follow symlinks encountered during a FILE GLOB_RECURSE call. The OLD behavior for this policy is to follow the symlinks. The NEW behavior for this policy is not to follow the symlinks by default, but only if FOLLOW_SYMLINKS is given as an additional argument to the FILE command.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.2. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0010"><b><code>CMP0010</code></b></a>: Bad variable reference syntax is an error.<br />
|
||||
<p>In CMake 2.6.2 and below, incorrect variable reference syntax such as a missing close-brace ("${FOO") was reported but did not stop processing of CMake code. This policy determines whether a bad variable reference is an error. The OLD behavior for this policy is to warn about the error, leave the string untouched, and continue. The NEW behavior for this policy is to report an error.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.3. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0011"><b><code>CMP0011</code></b></a>: Included scripts do automatic cmake_policy PUSH and POP.<br />
|
||||
<p>In CMake 2.6.2 and below, CMake Policy settings in scripts loaded by the include() and find_package() commands would affect the includer. Explicit invocations of cmake_policy(PUSH) and cmake_policy(POP) were required to isolate policy changes and protect the includer. While some scripts intend to affect the policies of their includer, most do not. In CMake 2.6.3 and above, include() and find_package() by default PUSH and POP an entry on the policy stack around an included script, but provide a NO_POLICY_SCOPE option to disable it. This policy determines whether or not to imply NO_POLICY_SCOPE for compatibility. The OLD behavior for this policy is to imply NO_POLICY_SCOPE for include() and find_package() commands. The NEW behavior for this policy is to allow the commands to do their default cmake_policy PUSH and POP.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.6.3. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0012"><b><code>CMP0012</code></b></a>: if() recognizes numbers and boolean constants.<br />
|
||||
<p>In CMake versions 2.6.4 and lower the if() command implicitly dereferenced arguments corresponding to variables, even those named like numbers or boolean constants, except for 0 and 1. Numbers and boolean constants such as true, false, yes, no, on, off, y, n, notfound, ignore (all case insensitive) were recognized in some cases but not all. For example, the code "if(TRUE)" might have evaluated as false. Numbers such as 2 were recognized only in boolean expressions like "if(NOT 2)" (leading to false) but not as a single-argument like "if(2)" (also leading to false). Later versions of CMake prefer to treat numbers and boolean constants literally, so they should not be used as variable names.<br /></p>
|
||||
<p>The OLD behavior for this policy is to implicitly dereference variables named like numbers and boolean constants. The NEW behavior for this policy is to recognize numbers and boolean constants without dereferencing variables with such names.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.8.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0013"><b><code>CMP0013</code></b></a>: Duplicate binary directories are not allowed.<br />
|
||||
<p>CMake 2.6.3 and below silently permitted add_subdirectory() calls to create the same binary directory multiple times. During build system generation files would be written and then overwritten in the build tree and could lead to strange behavior. CMake 2.6.4 and above explicitly detect duplicate binary directories. CMake 2.6.4 always considers this case an error. In CMake 2.8.0 and above this policy determines whether or not the case is an error. The OLD behavior for this policy is to allow duplicate binary directories. The NEW behavior for this policy is to disallow duplicate binary directories with an error.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.8.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0014"><b><code>CMP0014</code></b></a>: Input directories must have CMakeLists.txt.<br />
|
||||
<p>CMake versions before 2.8 silently ignored missing CMakeLists.txt files in directories referenced by add_subdirectory() or subdirs(), treating them as if present but empty. In CMake 2.8.0 and above this policy determines whether or not the case is an error. The OLD behavior for this policy is to silently ignore the problem. The NEW behavior for this policy is to report an error.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.8.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0015"><b><code>CMP0015</code></b></a>: link_directories() treats paths relative to the source dir.<br />
|
||||
<p>In CMake 2.8.0 and lower the link_directories() command passed relative paths unchanged to the linker. In CMake 2.8.1 and above the link_directories() command prefers to interpret relative paths with respect to CMAKE_CURRENT_SOURCE_DIR, which is consistent with include_directories() and other commands. The OLD behavior for this policy is to use relative paths verbatim in the linker command. The NEW behavior for this policy is to convert relative paths to absolute paths by appending the relative path to CMAKE_CURRENT_SOURCE_DIR.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.8.1. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0016"><b><code>CMP0016</code></b></a>: target_link_libraries() reports error if only argument is not a target.<br />
|
||||
<p>In CMake 2.8.2 and lower the target_link_libraries() command silently ignored if it was called with only one argument, and this argument wasn't a valid target. In CMake 2.8.3 and above it reports an error in this case.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.8.3. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="policy:CMP0017"><b><code>CMP0017</code></b></a>: Prefer files from the CMake module directory when including from there.<br />
|
||||
<p>Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e. located in the CMake module directory) calls include() or find_package(), the files located in the the CMake module directory are preferred over the files in CMAKE_MODULE_PATH. This makes sure that the modules belonging to CMake always get those files included which they expect, and against which they were developed and tested. In call other cases, the files found in CMAKE_MODULE_PATH still take precedence over the ones in the CMake module directory. The OLD behaviour is to always prefer files from CMAKE_MODULE_PATH over files from the CMake modules directory.<br /></p>
|
||||
<p>This policy was introduced in CMake version 2.8.4. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.</p>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h2><a name="section_Copyright"/>Copyright</h2>
|
||||
<p>Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.</p>
|
||||
|
||||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
||||
|
||||
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>
|
||||
|
||||
<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
||||
|
||||
<p>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>
|
||||
|
||||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
||||
|
||||
<h2><a name="section_SeeAlso"/>See Also</h2>
|
||||
<ul>
|
||||
<li><a href="#see:HomePage"><b><code>Home Page</code></b></a></li> <li><a href="#see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a></li> <li><a href="#see:OnlineDocumentation"><b><code>Online Documentation</code></b></a></li> <li><a href="#see:MailingList"><b><code>Mailing List</code></b></a></li></ul>
|
||||
<p>.B ccmake(1), cpack(1), ctest(1), cmakecommands(1), cmakecompat(1), cmakemodules(1), cmakeprops(1), cmakevars(1)</p>
|
||||
|
||||
<p>The following resources are available to get help using CMake:</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a name="see:HomePage"><b><code>Home Page</code></b></a>: <a href="http://www.cmake.org">http://www.cmake.org</a><br />
|
||||
<p>The primary starting point for learning about CMake.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a>: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br />
|
||||
<p>A Wiki is provided containing answers to frequently asked questions. </p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:OnlineDocumentation"><b><code>Online Documentation</code></b></a>: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br />
|
||||
<p>Links to available documentation may be found on this web page.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:MailingList"><b><code>Mailing List</code></b></a>: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br />
|
||||
<p>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <a href="http://www.cmake.org">http://www.cmake.org</a> before posting questions to the list.</p>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<p>Summary of helpful links:<br /></p>
|
||||
<pre> Home: <a href="http://www.cmake.org">http://www.cmake.org</a><br /> Docs: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br /> Mail: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br /> FAQ: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br /></pre>
|
||||
|
||||
</body></html>
|
||||
509
extern/cmake/2.85/doc/cmake-2.8/cmake-policies.txt
vendored
Normal file
509
extern/cmake/2.85/doc/cmake-2.8/cmake-policies.txt
vendored
Normal file
@@ -0,0 +1,509 @@
|
||||
cmake version 2.8.5
|
||||
------------------------------------------------------------------------------
|
||||
Introduction
|
||||
|
||||
cmake-policies - Reference of CMake policies.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Description
|
||||
|
||||
The "cmake" executable is the CMake command-line interface. It may be used
|
||||
to configure projects in scripts. Project configuration settings may be
|
||||
specified on the command line with the -D option. The -i option will cause
|
||||
cmake to interactively prompt for such settings.
|
||||
|
||||
CMake is a cross-platform build system generator. Projects specify their
|
||||
build process with platform-independent CMake listfiles included in each
|
||||
directory of a source tree with the name CMakeLists.txt. Users build a
|
||||
project by using CMake to generate a build system for a native tool on their
|
||||
platform.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Policies
|
||||
|
||||
CMP0000
|
||||
A minimum required CMake version must be specified.
|
||||
|
||||
CMake requires that projects specify the version of CMake to which
|
||||
they have been written. This policy has been put in place so users
|
||||
trying to build the project may be told when they need to update their
|
||||
CMake. Specifying a version also helps the project build with CMake
|
||||
versions newer than that specified. Use the cmake_minimum_required
|
||||
command at the top of your main CMakeLists.txt file:
|
||||
|
||||
cmake_minimum_required(VERSION <major>.<minor>)
|
||||
|
||||
where "<major>.<minor>" is the version of CMake you want to support
|
||||
(such as "2.6"). The command will ensure that at least the given
|
||||
version of CMake is running and help newer versions be compatible with
|
||||
the project. See documentation of cmake_minimum_required for details.
|
||||
|
||||
Note that the command invocation must appear in the CMakeLists.txt
|
||||
file itself; a call in an included file is not sufficient. However,
|
||||
the cmake_policy command may be called to set policy CMP0000 to OLD or
|
||||
NEW behavior explicitly. The OLD behavior is to silently ignore the
|
||||
missing invocation. The NEW behavior is to issue an error instead of
|
||||
a warning. An included file may set CMP0000 explicitly to affect how
|
||||
this policy is enforced for the main CMakeLists.txt file.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0.
|
||||
|
||||
CMP0001
|
||||
CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
|
||||
|
||||
The OLD behavior is to check CMAKE_BACKWARDS_COMPATIBILITY and present
|
||||
it to the user. The NEW behavior is to ignore
|
||||
CMAKE_BACKWARDS_COMPATIBILITY completely.
|
||||
|
||||
In CMake 2.4 and below the variable CMAKE_BACKWARDS_COMPATIBILITY was
|
||||
used to request compatibility with earlier versions of CMake. In
|
||||
CMake 2.6 and above all compatibility issues are handled by policies
|
||||
and the cmake_policy command. However, CMake must still check
|
||||
CMAKE_BACKWARDS_COMPATIBILITY for projects written for CMake 2.4 and
|
||||
below.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0002
|
||||
Logical target names must be globally unique.
|
||||
|
||||
Targets names created with add_executable, add_library, or
|
||||
add_custom_target are logical build target names. Logical target
|
||||
names must be globally unique because:
|
||||
|
||||
- Unique names may be referenced unambiguously both in CMake
|
||||
code and on make tool command lines.
|
||||
- Logical names are used by Xcode and VS IDE generators
|
||||
to produce meaningful project names for the targets.
|
||||
|
||||
The logical name of executable and library targets does not have to
|
||||
correspond to the physical file names built. Consider using the
|
||||
OUTPUT_NAME target property to create two targets with the same
|
||||
physical name while keeping logical names distinct. Custom targets
|
||||
must simply have globally unique names (unless one uses the global
|
||||
property ALLOW_DUPLICATE_CUSTOM_TARGETS with a Makefiles generator).
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0003
|
||||
Libraries linked via full path no longer produce linker search paths.
|
||||
|
||||
This policy affects how libraries whose full paths are NOT known are
|
||||
found at link time, but was created due to a change in how CMake deals
|
||||
with libraries whose full paths are known. Consider the code
|
||||
|
||||
target_link_libraries(myexe /path/to/libA.so)
|
||||
|
||||
CMake 2.4 and below implemented linking to libraries whose full paths
|
||||
are known by splitting them on the link line into separate components
|
||||
consisting of the linker search path and the library name. The
|
||||
example code might have produced something like
|
||||
|
||||
... -L/path/to -lA ...
|
||||
|
||||
in order to link to library A. An analysis was performed to order
|
||||
multiple link directories such that the linker would find library A in
|
||||
the desired location, but there are cases in which this does not work.
|
||||
CMake versions 2.6 and above use the more reliable approach of passing
|
||||
the full path to libraries directly to the linker in most cases. The
|
||||
example code now produces something like
|
||||
|
||||
... /path/to/libA.so ....
|
||||
|
||||
Unfortunately this change can break code like
|
||||
|
||||
target_link_libraries(myexe /path/to/libA.so B)
|
||||
|
||||
where "B" is meant to find "/path/to/libB.so". This code is wrong
|
||||
because the user is asking the linker to find library B but has not
|
||||
provided a linker search path (which may be added with the
|
||||
link_directories command). However, with the old linking
|
||||
implementation the code would work accidentally because the linker
|
||||
search path added for library A allowed library B to be found.
|
||||
|
||||
In order to support projects depending on linker search paths added by
|
||||
linking to libraries with known full paths, the OLD behavior for this
|
||||
policy will add the linker search paths even though they are not
|
||||
needed for their own libraries. When this policy is set to OLD, CMake
|
||||
will produce a link line such as
|
||||
|
||||
... -L/path/to /path/to/libA.so -lB ...
|
||||
|
||||
which will allow library B to be found as it was previously. When
|
||||
this policy is set to NEW, CMake will produce a link line such as
|
||||
|
||||
... /path/to/libA.so -lB ...
|
||||
|
||||
which more accurately matches what the project specified.
|
||||
|
||||
The setting for this policy used when generating the link line is that
|
||||
in effect when the target is created by an add_executable or
|
||||
add_library command. For the example described above, the code
|
||||
|
||||
cmake_policy(SET CMP0003 OLD) # or cmake_policy(VERSION 2.4)
|
||||
add_executable(myexe myexe.c)
|
||||
target_link_libraries(myexe /path/to/libA.so B)
|
||||
|
||||
will work and suppress the warning for this policy. It may also be
|
||||
updated to work with the corrected linking approach:
|
||||
|
||||
cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6)
|
||||
link_directories(/path/to) # needed to find library B
|
||||
add_executable(myexe myexe.c)
|
||||
target_link_libraries(myexe /path/to/libA.so B)
|
||||
|
||||
Even better, library B may be specified with a full path:
|
||||
|
||||
add_executable(myexe myexe.c)
|
||||
target_link_libraries(myexe /path/to/libA.so /path/to/libB.so)
|
||||
|
||||
When all items on the link line have known paths CMake does not check
|
||||
this policy so it has no effect.
|
||||
|
||||
Note that the warning for this policy will be issued for at most one
|
||||
target. This avoids flooding users with messages for every target
|
||||
when setting the policy once will probably fix all targets.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0004
|
||||
Libraries linked may not have leading or trailing whitespace.
|
||||
|
||||
CMake versions 2.4 and below silently removed leading and trailing
|
||||
whitespace from libraries linked with code like
|
||||
|
||||
target_link_libraries(myexe " A ")
|
||||
|
||||
This could lead to subtle errors in user projects.
|
||||
|
||||
The OLD behavior for this policy is to silently remove leading and
|
||||
trailing whitespace. The NEW behavior for this policy is to diagnose
|
||||
the existence of such whitespace as an error. The setting for this
|
||||
policy used when checking the library names is that in effect when the
|
||||
target is created by an add_executable or add_library command.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0005
|
||||
Preprocessor definition values are now escaped automatically.
|
||||
|
||||
This policy determines whether or not CMake should generate escaped
|
||||
preprocessor definition values added via add_definitions. CMake
|
||||
versions 2.4 and below assumed that only trivial values would be given
|
||||
for macros in add_definitions calls. It did not attempt to escape
|
||||
non-trivial values such as string literals in generated build rules.
|
||||
CMake versions 2.6 and above support escaping of most values, but
|
||||
cannot assume the user has not added escapes already in an attempt to
|
||||
work around limitations in earlier versions.
|
||||
|
||||
The OLD behavior for this policy is to place definition values given
|
||||
to add_definitions directly in the generated build rules without
|
||||
attempting to escape anything. The NEW behavior for this policy is to
|
||||
generate correct escapes for all native build tools automatically.
|
||||
See documentation of the COMPILE_DEFINITIONS target property for
|
||||
limitations of the escaping implementation.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0006
|
||||
Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
|
||||
|
||||
This policy determines whether the install(TARGETS) command must be
|
||||
given a BUNDLE DESTINATION when asked to install a target with the
|
||||
MACOSX_BUNDLE property set. CMake 2.4 and below did not distinguish
|
||||
application bundles from normal executables when installing targets.
|
||||
CMake 2.6 provides a BUNDLE option to the install(TARGETS) command
|
||||
that specifies rules specific to application bundles on the Mac.
|
||||
Projects should use this option when installing a target with the
|
||||
MACOSX_BUNDLE property set.
|
||||
|
||||
The OLD behavior for this policy is to fall back to the RUNTIME
|
||||
DESTINATION if a BUNDLE DESTINATION is not given. The NEW behavior
|
||||
for this policy is to produce an error if a bundle target is installed
|
||||
without a BUNDLE DESTINATION.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0007
|
||||
list command no longer ignores empty elements.
|
||||
|
||||
This policy determines whether the list command will ignore empty
|
||||
elements in the list. CMake 2.4 and below list commands ignored all
|
||||
empty elements in the list. For example, a;b;;c would have length 3
|
||||
and not 4. The OLD behavior for this policy is to ignore empty list
|
||||
elements. The NEW behavior for this policy is to correctly count
|
||||
empty elements in a list.
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0008
|
||||
Libraries linked by full-path must have a valid library file name.
|
||||
|
||||
In CMake 2.4 and below it is possible to write code like
|
||||
|
||||
target_link_libraries(myexe /full/path/to/somelib)
|
||||
|
||||
where "somelib" is supposed to be a valid library file name such as
|
||||
"libsomelib.a" or "somelib.lib". For Makefile generators this
|
||||
produces an error at build time because the dependency on the full
|
||||
path cannot be found. For VS IDE and Xcode generators this used to
|
||||
work by accident because CMake would always split off the library
|
||||
directory and ask the linker to search for the library by name
|
||||
(-lsomelib or somelib.lib). Despite the failure with Makefiles, some
|
||||
projects have code like this and build only with VS and/or Xcode.
|
||||
This version of CMake prefers to pass the full path directly to the
|
||||
native build tool, which will fail in this case because it does not
|
||||
name a valid library file.
|
||||
|
||||
This policy determines what to do with full paths that do not appear
|
||||
to name a valid library file. The OLD behavior for this policy is to
|
||||
split the library name from the path and ask the linker to search for
|
||||
it. The NEW behavior for this policy is to trust the given path and
|
||||
pass it directly to the native build tool unchanged.
|
||||
|
||||
This policy was introduced in CMake version 2.6.1. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0009
|
||||
FILE GLOB_RECURSE calls should not follow symlinks by default.
|
||||
|
||||
In CMake 2.6.1 and below, FILE GLOB_RECURSE calls would follow through
|
||||
symlinks, sometimes coming up with unexpectedly large result sets
|
||||
because of symlinks to top level directories that contain hundreds of
|
||||
thousands of files.
|
||||
|
||||
This policy determines whether or not to follow symlinks encountered
|
||||
during a FILE GLOB_RECURSE call. The OLD behavior for this policy is
|
||||
to follow the symlinks. The NEW behavior for this policy is not to
|
||||
follow the symlinks by default, but only if FOLLOW_SYMLINKS is given
|
||||
as an additional argument to the FILE command.
|
||||
|
||||
This policy was introduced in CMake version 2.6.2. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0010
|
||||
Bad variable reference syntax is an error.
|
||||
|
||||
In CMake 2.6.2 and below, incorrect variable reference syntax such as
|
||||
a missing close-brace ("${FOO") was reported but did not stop
|
||||
processing of CMake code. This policy determines whether a bad
|
||||
variable reference is an error. The OLD behavior for this policy is
|
||||
to warn about the error, leave the string untouched, and continue.
|
||||
The NEW behavior for this policy is to report an error.
|
||||
|
||||
This policy was introduced in CMake version 2.6.3. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0011
|
||||
Included scripts do automatic cmake_policy PUSH and POP.
|
||||
|
||||
In CMake 2.6.2 and below, CMake Policy settings in scripts loaded by
|
||||
the include() and find_package() commands would affect the includer.
|
||||
Explicit invocations of cmake_policy(PUSH) and cmake_policy(POP) were
|
||||
required to isolate policy changes and protect the includer. While
|
||||
some scripts intend to affect the policies of their includer, most do
|
||||
not. In CMake 2.6.3 and above, include() and find_package() by
|
||||
default PUSH and POP an entry on the policy stack around an included
|
||||
script, but provide a NO_POLICY_SCOPE option to disable it. This
|
||||
policy determines whether or not to imply NO_POLICY_SCOPE for
|
||||
compatibility. The OLD behavior for this policy is to imply
|
||||
NO_POLICY_SCOPE for include() and find_package() commands. The NEW
|
||||
behavior for this policy is to allow the commands to do their default
|
||||
cmake_policy PUSH and POP.
|
||||
|
||||
This policy was introduced in CMake version 2.6.3. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0012
|
||||
if() recognizes numbers and boolean constants.
|
||||
|
||||
In CMake versions 2.6.4 and lower the if() command implicitly
|
||||
dereferenced arguments corresponding to variables, even those named
|
||||
like numbers or boolean constants, except for 0 and 1. Numbers and
|
||||
boolean constants such as true, false, yes, no, on, off, y, n,
|
||||
notfound, ignore (all case insensitive) were recognized in some cases
|
||||
but not all. For example, the code "if(TRUE)" might have evaluated as
|
||||
false. Numbers such as 2 were recognized only in boolean expressions
|
||||
like "if(NOT 2)" (leading to false) but not as a single-argument like
|
||||
"if(2)" (also leading to false). Later versions of CMake prefer to
|
||||
treat numbers and boolean constants literally, so they should not be
|
||||
used as variable names.
|
||||
|
||||
The OLD behavior for this policy is to implicitly dereference
|
||||
variables named like numbers and boolean constants. The NEW behavior
|
||||
for this policy is to recognize numbers and boolean constants without
|
||||
dereferencing variables with such names.
|
||||
|
||||
This policy was introduced in CMake version 2.8.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0013
|
||||
Duplicate binary directories are not allowed.
|
||||
|
||||
CMake 2.6.3 and below silently permitted add_subdirectory() calls to
|
||||
create the same binary directory multiple times. During build system
|
||||
generation files would be written and then overwritten in the build
|
||||
tree and could lead to strange behavior. CMake 2.6.4 and above
|
||||
explicitly detect duplicate binary directories. CMake 2.6.4 always
|
||||
considers this case an error. In CMake 2.8.0 and above this policy
|
||||
determines whether or not the case is an error. The OLD behavior for
|
||||
this policy is to allow duplicate binary directories. The NEW
|
||||
behavior for this policy is to disallow duplicate binary directories
|
||||
with an error.
|
||||
|
||||
This policy was introduced in CMake version 2.8.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0014
|
||||
Input directories must have CMakeLists.txt.
|
||||
|
||||
CMake versions before 2.8 silently ignored missing CMakeLists.txt
|
||||
files in directories referenced by add_subdirectory() or subdirs(),
|
||||
treating them as if present but empty. In CMake 2.8.0 and above this
|
||||
policy determines whether or not the case is an error. The OLD
|
||||
behavior for this policy is to silently ignore the problem. The NEW
|
||||
behavior for this policy is to report an error.
|
||||
|
||||
This policy was introduced in CMake version 2.8.0. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0015
|
||||
link_directories() treats paths relative to the source dir.
|
||||
|
||||
In CMake 2.8.0 and lower the link_directories() command passed
|
||||
relative paths unchanged to the linker. In CMake 2.8.1 and above the
|
||||
link_directories() command prefers to interpret relative paths with
|
||||
respect to CMAKE_CURRENT_SOURCE_DIR, which is consistent with
|
||||
include_directories() and other commands. The OLD behavior for this
|
||||
policy is to use relative paths verbatim in the linker command. The
|
||||
NEW behavior for this policy is to convert relative paths to absolute
|
||||
paths by appending the relative path to CMAKE_CURRENT_SOURCE_DIR.
|
||||
|
||||
This policy was introduced in CMake version 2.8.1. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0016
|
||||
target_link_libraries() reports error if only argument is not a
|
||||
target.
|
||||
|
||||
In CMake 2.8.2 and lower the target_link_libraries() command silently
|
||||
ignored if it was called with only one argument, and this argument
|
||||
wasn't a valid target. In CMake 2.8.3 and above it reports an error
|
||||
in this case.
|
||||
|
||||
This policy was introduced in CMake version 2.8.3. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
CMP0017
|
||||
Prefer files from the CMake module directory when including from
|
||||
there.
|
||||
|
||||
Starting with CMake 2.8.4, if a cmake-module shipped with CMake (i.e.
|
||||
located in the CMake module directory) calls include() or
|
||||
find_package(), the files located in the the CMake module directory
|
||||
are preferred over the files in CMAKE_MODULE_PATH. This makes sure
|
||||
that the modules belonging to CMake always get those files included
|
||||
which they expect, and against which they were developed and tested.
|
||||
In call other cases, the files found in CMAKE_MODULE_PATH still take
|
||||
precedence over the ones in the CMake module directory. The OLD
|
||||
behaviour is to always prefer files from CMAKE_MODULE_PATH over files
|
||||
from the CMake modules directory.
|
||||
|
||||
This policy was introduced in CMake version 2.8.4. CMake version
|
||||
2.8.5 warns when the policy is not set and uses OLD behavior. Use the
|
||||
cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Copyright
|
||||
|
||||
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights
|
||||
reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
Neither the names of Kitware, Inc., the Insight Software Consortium, nor the
|
||||
names of their contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
See Also
|
||||
|
||||
.B ccmake(1), cpack(1), ctest(1), cmakecommands(1), cmakecompat(1),
|
||||
cmakemodules(1), cmakeprops(1), cmakevars(1)
|
||||
|
||||
The following resources are available to get help using CMake:
|
||||
|
||||
Home Page
|
||||
http://www.cmake.org
|
||||
|
||||
The primary starting point for learning about CMake.
|
||||
|
||||
Frequently Asked Questions
|
||||
http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
A Wiki is provided containing answers to frequently asked questions.
|
||||
|
||||
Online Documentation
|
||||
http://www.cmake.org/HTML/Documentation.html
|
||||
|
||||
Links to available documentation may be found on this web page.
|
||||
|
||||
Mailing List
|
||||
http://www.cmake.org/HTML/MailingLists.html
|
||||
|
||||
For help and discussion about using cmake, a mailing list is provided
|
||||
at cmake@cmake.org. The list is member-post-only but one may sign up
|
||||
on the CMake web page. Please first read the full documentation at
|
||||
http://www.cmake.org before posting questions to the list.
|
||||
|
||||
Summary of helpful links:
|
||||
|
||||
Home: http://www.cmake.org
|
||||
Docs: http://www.cmake.org/HTML/Documentation.html
|
||||
Mail: http://www.cmake.org/HTML/MailingLists.html
|
||||
FAQ: http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
|
||||
1050
extern/cmake/2.85/doc/cmake-2.8/cmake-properties.html
vendored
Normal file
1050
extern/cmake/2.85/doc/cmake-2.8/cmake-properties.html
vendored
Normal file
File diff suppressed because one or more lines are too long
1771
extern/cmake/2.85/doc/cmake-2.8/cmake-properties.txt
vendored
Normal file
1771
extern/cmake/2.85/doc/cmake-2.8/cmake-properties.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
921
extern/cmake/2.85/doc/cmake-2.8/cmake-variables.html
vendored
Normal file
921
extern/cmake/2.85/doc/cmake-2.8/cmake-variables.html
vendored
Normal file
File diff suppressed because one or more lines are too long
1325
extern/cmake/2.85/doc/cmake-2.8/cmake-variables.txt
vendored
Normal file
1325
extern/cmake/2.85/doc/cmake-2.8/cmake-variables.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
8570
extern/cmake/2.85/doc/cmake-2.8/cmake.docbook
vendored
Normal file
8570
extern/cmake/2.85/doc/cmake-2.8/cmake.docbook
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5920
extern/cmake/2.85/doc/cmake-2.8/cmake.html
vendored
Normal file
5920
extern/cmake/2.85/doc/cmake-2.8/cmake.html
vendored
Normal file
File diff suppressed because one or more lines are too long
14605
extern/cmake/2.85/doc/cmake-2.8/cmake.txt
vendored
Normal file
14605
extern/cmake/2.85/doc/cmake-2.8/cmake.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
34
extern/cmake/2.85/doc/cmake-2.8/cmcompress/Copyright.txt
vendored
Normal file
34
extern/cmake/2.85/doc/cmake-2.8/cmcompress/Copyright.txt
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
Copyright (c) 1985, 1986 The Regents of the University of California.
|
||||
All rights reserved.
|
||||
|
||||
This code is derived from software contributed to Berkeley by
|
||||
James A. Woods, derived from original work by Spencer Thomas
|
||||
and Joseph Orost.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. All advertising materials mentioning features or use of this software
|
||||
must display the following acknowledgement:
|
||||
This product includes software developed by the University of
|
||||
California, Berkeley and its contributors.
|
||||
4. Neither the name of the University nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
21
extern/cmake/2.85/doc/cmake-2.8/cmcurl/COPYING
vendored
Normal file
21
extern/cmake/2.85/doc/cmake-2.8/cmcurl/COPYING
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
COPYRIGHT AND PERMISSION NOTICE
|
||||
|
||||
Copyright (c) 1996 - 2009, Daniel Stenberg, <daniel@haxx.se>.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Permission to use, copy, modify, and distribute this software for any purpose
|
||||
with or without fee is hereby granted, provided that the above copyright
|
||||
notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
|
||||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||
OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of a copyright holder shall not
|
||||
be used in advertising or otherwise to promote the sale, use or other dealings
|
||||
in this Software without prior written authorization of the copyright holder.
|
||||
21
extern/cmake/2.85/doc/cmake-2.8/cmexpat/COPYING
vendored
Normal file
21
extern/cmake/2.85/doc/cmake-2.8/cmexpat/COPYING
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
|
||||
and Clark Cooper
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
60
extern/cmake/2.85/doc/cmake-2.8/cmlibarchive/COPYING
vendored
Normal file
60
extern/cmake/2.85/doc/cmake-2.8/cmlibarchive/COPYING
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
The libarchive distribution as a whole is Copyright by Tim Kientzle
|
||||
and is subject to the copyright notice reproduced at the bottom of
|
||||
this file.
|
||||
|
||||
Each individual file in this distribution should have a clear
|
||||
copyright/licensing statement at the beginning of the file. If any do
|
||||
not, please let me know and I will rectify it. The following is
|
||||
intended to summarize the copyright status of the individual files;
|
||||
the actual statements in the files are controlling.
|
||||
|
||||
* Except as listed below, all C sources (including .c and .h files)
|
||||
and documentation files are subject to the copyright notice reproduced
|
||||
at the bottom of this file.
|
||||
|
||||
* The following source files are also subject in whole or in part to
|
||||
a 3-clause UC Regents copyright; please read the individual source
|
||||
files for details:
|
||||
libarchive/archive_entry.c
|
||||
libarchive/archive_read_support_compression_compress.c
|
||||
libarchive/archive_write_set_compression_compress.c
|
||||
libarchive/mtree.5
|
||||
tar/matching.c
|
||||
|
||||
* The following source files are in the public domain:
|
||||
tar/getdate.c
|
||||
|
||||
* The build files---including Makefiles, configure scripts,
|
||||
and auxiliary scripts used as part of the compile process---have
|
||||
widely varying licensing terms. Please check individual files before
|
||||
distributing them to see if those restrictions apply to you.
|
||||
|
||||
I intend for all new source code to use the license below and hope over
|
||||
time to replace code with other licenses with new implementations that
|
||||
do use the license below. The varying licensing of the build scripts
|
||||
seems to be an unavoidable mess.
|
||||
|
||||
|
||||
Copyright (c) 2003-2009 <author(s)>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer
|
||||
in this position and unchanged.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
31
extern/cmake/2.85/doc/cmake-2.8/cmsys/Copyright.txt
vendored
Normal file
31
extern/cmake/2.85/doc/cmake-2.8/cmsys/Copyright.txt
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
KWSys - Kitware System Library
|
||||
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the names of Kitware, Inc., the Insight Software Consortium,
|
||||
nor the names of their contributors may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
23
extern/cmake/2.85/doc/cmake-2.8/cmzlib/Copyright.txt
vendored
Normal file
23
extern/cmake/2.85/doc/cmake-2.8/cmzlib/Copyright.txt
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'zlib' general purpose compression library
|
||||
version 1.2.3, July 18th, 2005
|
||||
|
||||
Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
Jean-loup Gailly Mark Adler
|
||||
jloup@gzip.org madler@alumni.caltech.edu
|
||||
143
extern/cmake/2.85/doc/cmake-2.8/cpack.docbook
vendored
Normal file
143
extern/cmake/2.85/doc/cmake-2.8/cpack.docbook
vendored
Normal file
@@ -0,0 +1,143 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
|
||||
<!ENTITY % addindex "IGNORE">
|
||||
<!ENTITY % English "INCLUDE"> ]>
|
||||
<article>
|
||||
<articleinfo>
|
||||
<title>cpack - cpack</title>
|
||||
</articleinfo>
|
||||
<sect1 id="section_Name">
|
||||
<title>
|
||||
Name</title>
|
||||
<itemizedlist>
|
||||
</itemizedlist>
|
||||
<literallayout> cpack - Packaging driver provided by CMake.</literallayout>
|
||||
|
||||
</sect1>
|
||||
<sect1 id="section_Usage">
|
||||
<title>
|
||||
Usage</title>
|
||||
<itemizedlist>
|
||||
</itemizedlist>
|
||||
<literallayout> cpack -G <generator> [options]</literallayout>
|
||||
|
||||
</sect1>
|
||||
<sect1 id="section_Description">
|
||||
<title>
|
||||
Description</title>
|
||||
<itemizedlist>
|
||||
</itemizedlist>
|
||||
<para>The "cpack" executable is the CMake packaging program. CMake-generated build trees created for projects that use the INSTALL_* commands have packaging support. This program will generate the package.</para>
|
||||
<para>CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.</para>
|
||||
</sect1>
|
||||
<sect1 id="section_Options">
|
||||
<title>
|
||||
Options</title>
|
||||
<itemizedlist>
|
||||
<listitem><link linkend="opt_-G <generator>"><emphasis><literal>-G <generator></literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="opt_-C <Configuration>"><emphasis><literal>-C <Configuration></literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="opt_-D <var>=<value>"><emphasis><literal>-D <var>=<value></literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="opt_--config <config file>"><emphasis><literal>--config <config file></literal></emphasis></link></listitem>
|
||||
</itemizedlist>
|
||||
<para id="opt_-G <generator>"><sect2><title>-G <generator></title></sect2> Use the specified generator to generate package.</para>
|
||||
|
||||
<para>CPack may support multiple native packaging systems on certain platforms. A generator is responsible for generating input files for particular system and invoking that systems. Possible generator names are specified in the Generators section.</para>
|
||||
<para id="opt_-C <Configuration>"><sect2><title>-C <Configuration></title></sect2> Specify the project configuration</para>
|
||||
|
||||
<para>This option specifies the configuration that the project was build with, for example 'Debug', 'Release'.</para>
|
||||
<para id="opt_-D <var>=<value>"><sect2><title>-D <var>=<value></title></sect2> Set a CPack variable.</para>
|
||||
|
||||
<para>Set a variable that can be used by the generator.</para>
|
||||
<para id="opt_--config <config file>"><sect2><title>--config <config file></title></sect2> Specify the config file.</para>
|
||||
|
||||
<para>Specify the config file to use to create the package. By default CPackConfig.cmake in the current directory will be used.</para>
|
||||
</sect1>
|
||||
<sect1 id="section_Generators">
|
||||
<title>
|
||||
Generators</title>
|
||||
<itemizedlist>
|
||||
<listitem><link linkend="gen_NSIS"><emphasis><literal>NSIS</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="gen_STGZ"><emphasis><literal>STGZ</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="gen_TBZ2"><emphasis><literal>TBZ2</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="gen_TGZ"><emphasis><literal>TGZ</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="gen_TZ"><emphasis><literal>TZ</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="gen_ZIP"><emphasis><literal>ZIP</literal></emphasis></link></listitem>
|
||||
</itemizedlist>
|
||||
<para id="gen_NSIS"><sect2><title>NSIS</title></sect2> Null Soft Installer</para>
|
||||
|
||||
<para id="gen_STGZ"><sect2><title>STGZ</title></sect2> Self extracting Tar GZip compression</para>
|
||||
|
||||
<para id="gen_TBZ2"><sect2><title>TBZ2</title></sect2> Tar BZip2 compression</para>
|
||||
|
||||
<para id="gen_TGZ"><sect2><title>TGZ</title></sect2> Tar GZip compression</para>
|
||||
|
||||
<para id="gen_TZ"><sect2><title>TZ</title></sect2> Tar Compress compression</para>
|
||||
|
||||
<para id="gen_ZIP"><sect2><title>ZIP</title></sect2> ZIP file format</para>
|
||||
|
||||
</sect1>
|
||||
<sect1 id="section_Properties">
|
||||
<title>
|
||||
Properties</title>
|
||||
<itemizedlist>
|
||||
</itemizedlist>
|
||||
<literallayout> CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.</literallayout>
|
||||
|
||||
<para>This is the documentation for the properties supported by CMake. Properties can have different scopes. They can either be assigned to a source file, a directory, a target or globally to CMake. By modifying the values of properties the behaviour of the build system can be customized.</para>
|
||||
</sect1>
|
||||
<sect1 id="section_Compatibility Commands">
|
||||
<title>
|
||||
Compatibility Commands</title>
|
||||
<itemizedlist>
|
||||
</itemizedlist>
|
||||
<literallayout> CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.</literallayout>
|
||||
|
||||
<para>This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;-)</para>
|
||||
</sect1>
|
||||
<sect1 id="section_Standard CMake Modules">
|
||||
<title>
|
||||
Standard CMake Modules</title>
|
||||
</sect1>
|
||||
<sect1 id="section_Copyright">
|
||||
<title>
|
||||
Copyright</title>
|
||||
<itemizedlist>
|
||||
</itemizedlist>
|
||||
<para>Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.</para>
|
||||
<para>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</para>
|
||||
<para>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</para>
|
||||
<para>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</para>
|
||||
<para>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</para>
|
||||
<para>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</para>
|
||||
</sect1>
|
||||
<sect1 id="section_See Also">
|
||||
<title>
|
||||
See Also</title>
|
||||
<itemizedlist>
|
||||
<listitem><link linkend="see_Home Page"><emphasis><literal>Home Page</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="see_Frequently Asked Questions"><emphasis><literal>Frequently Asked Questions</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="see_Online Documentation"><emphasis><literal>Online Documentation</literal></emphasis></link></listitem>
|
||||
<listitem><link linkend="see_Mailing List"><emphasis><literal>Mailing List</literal></emphasis></link></listitem>
|
||||
</itemizedlist>
|
||||
<para>The following resources are available to get help using CMake:</para>
|
||||
<para id="see_Home Page"><sect2><title>Home Page</title></sect2> <ulink url="http://www.cmake.org" /></para>
|
||||
|
||||
<para>The primary starting point for learning about CMake.</para>
|
||||
<para id="see_Frequently Asked Questions"><sect2><title>Frequently Asked Questions</title></sect2> <ulink url="http://www.cmake.org/Wiki/CMake_FAQ" /></para>
|
||||
|
||||
<para>A Wiki is provided containing answers to frequently asked questions. </para>
|
||||
<para id="see_Online Documentation"><sect2><title>Online Documentation</title></sect2> <ulink url="http://www.cmake.org/HTML/Documentation.html" /></para>
|
||||
|
||||
<para>Links to available documentation may be found on this web page.</para>
|
||||
<para id="see_Mailing List"><sect2><title>Mailing List</title></sect2> <ulink url="http://www.cmake.org/HTML/MailingLists.html" /></para>
|
||||
|
||||
<para>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <ulink url="http://www.cmake.org" /> before posting questions to the list.</para>
|
||||
<para>Summary of helpful links:
|
||||
</para><literallayout> Home: <ulink url="http://www.cmake.org" />
|
||||
Docs: <ulink url="http://www.cmake.org/HTML/Documentation.html" />
|
||||
Mail: <ulink url="http://www.cmake.org/HTML/MailingLists.html" />
|
||||
FAQ: <ulink url="http://www.cmake.org/Wiki/CMake_FAQ" />
|
||||
</literallayout>
|
||||
|
||||
</sect1>
|
||||
</article>
|
||||
130
extern/cmake/2.85/doc/cmake-2.8/cpack.html
vendored
Normal file
130
extern/cmake/2.85/doc/cmake-2.8/cpack.html
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>cpack - cpack</title></head><body>
|
||||
<h2><a name="section_Index">Master Index CMake 2.8.5</a></h2>
|
||||
<ul>
|
||||
<li><a href="#section_Name"><b>Name</b></a></li>
|
||||
<li><a href="#section_Usage"><b>Usage</b></a></li>
|
||||
<li><a href="#section_Description"><b>Description</b></a></li>
|
||||
<li><a href="#section_Options"><b>Options</b></a></li>
|
||||
<li><a href="#section_Generators"><b>Generators</b></a></li>
|
||||
<li><a href="#section_Properties"><b>Properties</b></a></li>
|
||||
<li><a href="#section_CompatibilityCommands"><b>Compatibility Commands</b></a></li>
|
||||
<li><a href="#section_StandardCMakeModules"><b>Standard CMake Modules</b></a></li>
|
||||
<li><a href="#section_Copyright"><b>Copyright</b></a></li>
|
||||
<li><a href="#section_SeeAlso"><b>See Also</b></a></li>
|
||||
</ul>
|
||||
<h2><a name="section_Name"/>Name</h2>
|
||||
<pre> cpack - Packaging driver provided by CMake.</pre>
|
||||
|
||||
<h2><a name="section_Usage"/>Usage</h2>
|
||||
<pre> cpack -G <generator> [options]</pre>
|
||||
|
||||
<h2><a name="section_Description"/>Description</h2>
|
||||
<p>The "cpack" executable is the CMake packaging program. CMake-generated build trees created for projects that use the INSTALL_* commands have packaging support. This program will generate the package.</p>
|
||||
|
||||
<p>CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.</p>
|
||||
|
||||
<h2><a name="section_Options"/>Options</h2>
|
||||
<ul>
|
||||
<li><a href="#opt:-Ggenerator"><b><code>-G <generator></code></b></a></li> <li><a href="#opt:-CConfiguration"><b><code>-C <Configuration></code></b></a></li> <li><a href="#opt:-Dvarvalue"><b><code>-D <var>=<value></code></b></a></li> <li><a href="#opt:--configconfigfile"><b><code>--config <config file></code></b></a></li></ul>
|
||||
<ul>
|
||||
<li>
|
||||
<a name="opt:-Ggenerator"><b><code>-G <generator></code></b></a>: Use the specified generator to generate package.<br />
|
||||
<p>CPack may support multiple native packaging systems on certain platforms. A generator is responsible for generating input files for particular system and invoking that systems. Possible generator names are specified in the Generators section.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="opt:-CConfiguration"><b><code>-C <Configuration></code></b></a>: Specify the project configuration<br />
|
||||
<p>This option specifies the configuration that the project was build with, for example 'Debug', 'Release'.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="opt:-Dvarvalue"><b><code>-D <var>=<value></code></b></a>: Set a CPack variable.<br />
|
||||
<p>Set a variable that can be used by the generator.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="opt:--configconfigfile"><b><code>--config <config file></code></b></a>: Specify the config file.<br />
|
||||
<p>Specify the config file to use to create the package. By default CPackConfig.cmake in the current directory will be used.</p>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<h2><a name="section_Generators"/>Generators</h2>
|
||||
<ul>
|
||||
<li><a href="#gen:NSIS"><b><code>NSIS</code></b></a></li> <li><a href="#gen:STGZ"><b><code>STGZ</code></b></a></li> <li><a href="#gen:TBZ2"><b><code>TBZ2</code></b></a></li> <li><a href="#gen:TGZ"><b><code>TGZ</code></b></a></li> <li><a href="#gen:TZ"><b><code>TZ</code></b></a></li> <li><a href="#gen:ZIP"><b><code>ZIP</code></b></a></li></ul>
|
||||
<ul>
|
||||
<li>
|
||||
<a name="gen:NSIS"><b><code>NSIS</code></b></a>: Null Soft Installer
|
||||
</li>
|
||||
<li>
|
||||
<a name="gen:STGZ"><b><code>STGZ</code></b></a>: Self extracting Tar GZip compression
|
||||
</li>
|
||||
<li>
|
||||
<a name="gen:TBZ2"><b><code>TBZ2</code></b></a>: Tar BZip2 compression
|
||||
</li>
|
||||
<li>
|
||||
<a name="gen:TGZ"><b><code>TGZ</code></b></a>: Tar GZip compression
|
||||
</li>
|
||||
<li>
|
||||
<a name="gen:TZ"><b><code>TZ</code></b></a>: Tar Compress compression
|
||||
</li>
|
||||
<li>
|
||||
<a name="gen:ZIP"><b><code>ZIP</code></b></a>: ZIP file format
|
||||
</li>
|
||||
</ul>
|
||||
<h2><a name="section_Properties"/>Properties</h2>
|
||||
<pre> CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.</pre>
|
||||
|
||||
<p>This is the documentation for the properties supported by CMake. Properties can have different scopes. They can either be assigned to a source file, a directory, a target or globally to CMake. By modifying the values of properties the behaviour of the build system can be customized.</p>
|
||||
|
||||
<h2><a name="section_CompatibilityCommands"/>Compatibility Commands</h2>
|
||||
<pre> CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.</pre>
|
||||
|
||||
<p>This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;-)</p>
|
||||
|
||||
<h2><a name="section_StandardCMakeModules"/>Standard CMake Modules</h2>
|
||||
<h2><a name="section_Copyright"/>Copyright</h2>
|
||||
<p>Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.</p>
|
||||
|
||||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
||||
|
||||
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p>
|
||||
|
||||
<p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
||||
|
||||
<p>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p>
|
||||
|
||||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
||||
|
||||
<h2><a name="section_SeeAlso"/>See Also</h2>
|
||||
<ul>
|
||||
<li><a href="#see:HomePage"><b><code>Home Page</code></b></a></li> <li><a href="#see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a></li> <li><a href="#see:OnlineDocumentation"><b><code>Online Documentation</code></b></a></li> <li><a href="#see:MailingList"><b><code>Mailing List</code></b></a></li></ul>
|
||||
<p>The following resources are available to get help using CMake:</p>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<a name="see:HomePage"><b><code>Home Page</code></b></a>: <a href="http://www.cmake.org">http://www.cmake.org</a><br />
|
||||
<p>The primary starting point for learning about CMake.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:FrequentlyAskedQuestions"><b><code>Frequently Asked Questions</code></b></a>: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br />
|
||||
<p>A Wiki is provided containing answers to frequently asked questions. </p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:OnlineDocumentation"><b><code>Online Documentation</code></b></a>: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br />
|
||||
<p>Links to available documentation may be found on this web page.</p>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a name="see:MailingList"><b><code>Mailing List</code></b></a>: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br />
|
||||
<p>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <a href="http://www.cmake.org">http://www.cmake.org</a> before posting questions to the list.</p>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<p>Summary of helpful links:<br /></p>
|
||||
<pre> Home: <a href="http://www.cmake.org">http://www.cmake.org</a><br /> Docs: <a href="http://www.cmake.org/HTML/Documentation.html">http://www.cmake.org/HTML/Documentation.html</a><br /> Mail: <a href="http://www.cmake.org/HTML/MailingLists.html">http://www.cmake.org/HTML/MailingLists.html</a><br /> FAQ: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br /></pre>
|
||||
|
||||
</body></html>
|
||||
163
extern/cmake/2.85/doc/cmake-2.8/cpack.txt
vendored
Normal file
163
extern/cmake/2.85/doc/cmake-2.8/cpack.txt
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
cpack version 2.8.5
|
||||
------------------------------------------------------------------------------
|
||||
Name
|
||||
|
||||
cpack - Packaging driver provided by CMake.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Usage
|
||||
|
||||
cpack -G <generator> [options]
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Description
|
||||
|
||||
The "cpack" executable is the CMake packaging program. CMake-generated build
|
||||
trees created for projects that use the INSTALL_* commands have packaging
|
||||
support. This program will generate the package.
|
||||
|
||||
CMake is a cross-platform build system generator. Projects specify their
|
||||
build process with platform-independent CMake listfiles included in each
|
||||
directory of a source tree with the name CMakeLists.txt. Users build a
|
||||
project by using CMake to generate a build system for a native tool on their
|
||||
platform.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Options
|
||||
|
||||
-G <generator>
|
||||
Use the specified generator to generate package.
|
||||
|
||||
CPack may support multiple native packaging systems on certain
|
||||
platforms. A generator is responsible for generating input files for
|
||||
particular system and invoking that systems. Possible generator names
|
||||
are specified in the Generators section.
|
||||
|
||||
-C <Configuration>
|
||||
Specify the project configuration
|
||||
|
||||
This option specifies the configuration that the project was build
|
||||
with, for example 'Debug', 'Release'.
|
||||
|
||||
-D <var>=<value>
|
||||
Set a CPack variable.
|
||||
|
||||
Set a variable that can be used by the generator.
|
||||
|
||||
--config <config file>
|
||||
Specify the config file.
|
||||
|
||||
Specify the config file to use to create the package. By default
|
||||
CPackConfig.cmake in the current directory will be used.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Generators
|
||||
|
||||
NSIS
|
||||
Null Soft Installer
|
||||
|
||||
STGZ
|
||||
Self extracting Tar GZip compression
|
||||
|
||||
TBZ2
|
||||
Tar BZip2 compression
|
||||
|
||||
TGZ
|
||||
Tar GZip compression
|
||||
|
||||
TZ
|
||||
Tar Compress compression
|
||||
|
||||
ZIP
|
||||
ZIP file format
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Properties
|
||||
|
||||
CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.
|
||||
|
||||
This is the documentation for the properties supported by CMake. Properties
|
||||
can have different scopes. They can either be assigned to a source file, a
|
||||
directory, a target or globally to CMake. By modifying the values of
|
||||
properties the behaviour of the build system can be customized.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Compatibility Commands
|
||||
|
||||
CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.
|
||||
|
||||
This is the documentation for now obsolete listfile commands from previous
|
||||
CMake versions, which are still supported for compatibility reasons. You
|
||||
should instead use the newer, faster and shinier new commands. ;-)
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Standard CMake Modules
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Copyright
|
||||
|
||||
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium. All rights
|
||||
reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
Neither the names of Kitware, Inc., the Insight Software Consortium, nor the
|
||||
names of their contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
See Also
|
||||
|
||||
The following resources are available to get help using CMake:
|
||||
|
||||
Home Page
|
||||
http://www.cmake.org
|
||||
|
||||
The primary starting point for learning about CMake.
|
||||
|
||||
Frequently Asked Questions
|
||||
http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
A Wiki is provided containing answers to frequently asked questions.
|
||||
|
||||
Online Documentation
|
||||
http://www.cmake.org/HTML/Documentation.html
|
||||
|
||||
Links to available documentation may be found on this web page.
|
||||
|
||||
Mailing List
|
||||
http://www.cmake.org/HTML/MailingLists.html
|
||||
|
||||
For help and discussion about using cmake, a mailing list is provided
|
||||
at cmake@cmake.org. The list is member-post-only but one may sign up
|
||||
on the CMake web page. Please first read the full documentation at
|
||||
http://www.cmake.org before posting questions to the list.
|
||||
|
||||
Summary of helpful links:
|
||||
|
||||
Home: http://www.cmake.org
|
||||
Docs: http://www.cmake.org/HTML/Documentation.html
|
||||
Mail: http://www.cmake.org/HTML/MailingLists.html
|
||||
FAQ: http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
|
||||
1514
extern/cmake/2.85/doc/cmake-2.8/ctest.docbook
vendored
Normal file
1514
extern/cmake/2.85/doc/cmake-2.8/ctest.docbook
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1041
extern/cmake/2.85/doc/cmake-2.8/ctest.html
vendored
Normal file
1041
extern/cmake/2.85/doc/cmake-2.8/ctest.html
vendored
Normal file
File diff suppressed because one or more lines are too long
2792
extern/cmake/2.85/doc/cmake-2.8/ctest.txt
vendored
Normal file
2792
extern/cmake/2.85/doc/cmake-2.8/ctest.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13834
extern/cmake/2.85/man/man1/cmake-gui.1
vendored
Normal file
13834
extern/cmake/2.85/man/man1/cmake-gui.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
14410
extern/cmake/2.85/man/man1/cmake.1
vendored
Normal file
14410
extern/cmake/2.85/man/man1/cmake.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2881
extern/cmake/2.85/man/man1/cmakecommands.1
vendored
Normal file
2881
extern/cmake/2.85/man/man1/cmakecommands.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
310
extern/cmake/2.85/man/man1/cmakecompat.1
vendored
Normal file
310
extern/cmake/2.85/man/man1/cmakecompat.1
vendored
Normal file
@@ -0,0 +1,310 @@
|
||||
.TH cmakecompat 1 "July 08, 2011" "cmake 2.8.5"
|
||||
.SH NAME
|
||||
.PP
|
||||
cmakecompat \- Reference of CMake compatibility commands.
|
||||
|
||||
.SH COMPATIBILITY COMMANDS
|
||||
.PP
|
||||
.nf
|
||||
CMake Compatibility Listfile Commands \- Obsolete commands supported by CMake for compatibility.
|
||||
.fi
|
||||
|
||||
.PP
|
||||
This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;\-)
|
||||
|
||||
.TP
|
||||
.B build_name
|
||||
Deprecated. Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.
|
||||
|
||||
.nf
|
||||
build_name(variable)
|
||||
.fi
|
||||
|
||||
Sets the specified variable to a string representing the platform and compiler settings. These values are now available through the CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.
|
||||
|
||||
.TP
|
||||
.B exec_program
|
||||
Deprecated. Use the execute_process() command instead.
|
||||
|
||||
Run an executable program during the processing of the CMakeList.txt file.
|
||||
|
||||
|
||||
.nf
|
||||
exec_program(Executable [directory in which to run]
|
||||
[ARGS <arguments to executable>]
|
||||
[OUTPUT_VARIABLE <var>]
|
||||
[RETURN_VALUE <var>])
|
||||
.fi
|
||||
|
||||
The executable is run in the optionally specified directory. The executable can include arguments if it is double quoted, but it is better to use the optional ARGS argument to specify arguments to the program. This is because cmake will then be able to escape spaces in the executable path. An optional argument OUTPUT_VARIABLE specifies a variable in which to store the output. To capture the return value of the execution, provide a RETURN_VALUE. If OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr of the console running cmake.
|
||||
|
||||
|
||||
.TP
|
||||
.B export_library_dependencies
|
||||
Deprecated. Use INSTALL(EXPORT) or EXPORT command.
|
||||
|
||||
This command generates an old\-style library dependencies file. Projects requiring CMake 2.6 or later should not use the command. Use instead the install(EXPORT) command to help export targets from an installation tree and the export() command to export targets from a build tree.
|
||||
|
||||
|
||||
The old\-style library dependencies file does not take into account per\-configuration names of libraries or the LINK_INTERFACE_LIBRARIES target property.
|
||||
|
||||
|
||||
.nf
|
||||
export_library_dependencies(<file> [APPEND])
|
||||
.fi
|
||||
|
||||
Create a file named <file> that can be included into a CMake listfile with the INCLUDE command. The file will contain a number of SET commands that will set all the variables needed for library dependency information. This should be the last command in the top level CMakeLists.txt file of the project. If the APPEND option is specified, the SET commands will be appended to the given file instead of replacing it.
|
||||
|
||||
.TP
|
||||
.B install_files
|
||||
Deprecated. Use the install(FILES ) command instead.
|
||||
|
||||
This command has been superceded by the install command. It is provided for compatibility with older CMake code. The FILES form is directly replaced by the FILES form of the install command. The regexp form can be expressed more clearly using the GLOB form of the file command.
|
||||
|
||||
|
||||
.nf
|
||||
install_files(<dir> extension file file ...)
|
||||
.fi
|
||||
|
||||
Create rules to install the listed files with the given extension into the given directory. Only files existing in the current source tree or its corresponding location in the binary tree may be listed. If a file specified already has an extension, that extension will be removed first. This is useful for providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. A typical extension is '.h'.
|
||||
|
||||
|
||||
.nf
|
||||
install_files(<dir> regexp)
|
||||
.fi
|
||||
|
||||
Any files in the current source directory that match the regular expression will be installed.
|
||||
|
||||
|
||||
.nf
|
||||
install_files(<dir> FILES file file ...)
|
||||
.fi
|
||||
|
||||
Any files listed after the FILES keyword will be installed explicitly from the names given. Full paths are allowed in this form.
|
||||
|
||||
|
||||
The directory <dir> is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.
|
||||
|
||||
.TP
|
||||
.B install_programs
|
||||
Deprecated. Use the install(PROGRAMS ) command instead.
|
||||
|
||||
This command has been superceded by the install command. It is provided for compatibility with older CMake code. The FILES form is directly replaced by the PROGRAMS form of the INSTALL command. The regexp form can be expressed more clearly using the GLOB form of the FILE command.
|
||||
|
||||
|
||||
.nf
|
||||
install_programs(<dir> file1 file2 [file3 ...])
|
||||
install_programs(<dir> FILES file1 [file2 ...])
|
||||
.fi
|
||||
|
||||
Create rules to install the listed programs into the given directory. Use the FILES argument to guarantee that the file list version of the command will be used even when there is only one argument.
|
||||
|
||||
|
||||
.nf
|
||||
install_programs(<dir> regexp)
|
||||
.fi
|
||||
|
||||
In the second form any program in the current source directory that matches the regular expression will be installed.
|
||||
|
||||
|
||||
This command is intended to install programs that are not built by cmake, such as shell scripts. See the TARGETS form of the INSTALL command to create installation rules for targets built by cmake.
|
||||
|
||||
|
||||
The directory <dir> is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.
|
||||
|
||||
.TP
|
||||
.B install_targets
|
||||
Deprecated. Use the install(TARGETS ) command instead.
|
||||
|
||||
This command has been superceded by the install command. It is provided for compatibility with older CMake code.
|
||||
|
||||
|
||||
.nf
|
||||
install_targets(<dir> [RUNTIME_DIRECTORY dir] target target)
|
||||
.fi
|
||||
|
||||
Create rules to install the listed targets into the given directory. The directory <dir> is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX. If RUNTIME_DIRECTORY is specified, then on systems with special runtime files (Windows DLL), the files will be copied to that directory.
|
||||
|
||||
.TP
|
||||
.B link_libraries
|
||||
Deprecated. Use the target_link_libraries() command instead.
|
||||
|
||||
Link libraries to all targets added later.
|
||||
|
||||
|
||||
.nf
|
||||
link_libraries(library1 <debug | optimized> library2 ...)
|
||||
.fi
|
||||
|
||||
Specify a list of libraries to be linked into any following targets (typically added with the add_executable or add_library calls). This command is passed down to all subdirectories. The debug and optimized strings may be used to indicate that the next library listed is to be used only for that specific type of build.
|
||||
|
||||
.TP
|
||||
.B make_directory
|
||||
Deprecated. Use the file(MAKE_DIRECTORY ) command instead.
|
||||
|
||||
.nf
|
||||
make_directory(directory)
|
||||
.fi
|
||||
|
||||
Creates the specified directory. Full paths should be given. Any parent directories that do not exist will also be created. Use with care.
|
||||
|
||||
.TP
|
||||
.B output_required_files
|
||||
Deprecated. Approximate C preprocessor dependency scanning.
|
||||
|
||||
This command exists only because ancient CMake versions provided it. CMake handles preprocessor dependency scanning automatically using a more advanced scanner.
|
||||
|
||||
|
||||
.nf
|
||||
output_required_files(srcfile outputfile)
|
||||
.fi
|
||||
|
||||
Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible.
|
||||
|
||||
.TP
|
||||
.B remove
|
||||
Deprecated. Use the list(REMOVE_ITEM ) command instead.
|
||||
|
||||
.nf
|
||||
remove(VAR VALUE VALUE ...)
|
||||
.fi
|
||||
|
||||
Removes VALUE from the variable VAR. This is typically used to remove entries from a vector (e.g. semicolon separated list). VALUE is expanded.
|
||||
|
||||
.TP
|
||||
.B subdir_depends
|
||||
Deprecated. Does nothing.
|
||||
|
||||
.nf
|
||||
subdir_depends(subdir dep1 dep2 ...)
|
||||
.fi
|
||||
|
||||
Does not do anything. This command used to help projects order parallel builds correctly. This functionality is now automatic.
|
||||
|
||||
.TP
|
||||
.B subdirs
|
||||
Deprecated. Use the add_subdirectory() command instead.
|
||||
|
||||
Add a list of subdirectories to the build.
|
||||
|
||||
|
||||
.nf
|
||||
subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...]
|
||||
[PREORDER] )
|
||||
.fi
|
||||
|
||||
Add a list of subdirectories to the build. The add_subdirectory command should be used instead of subdirs although subdirs will still work. This will cause any CMakeLists.txt files in the sub directories to be processed by CMake. Any directories after the PREORDER flag are traversed first by makefile builds, the PREORDER flag has no effect on IDE projects. Any directories after the EXCLUDE_FROM_ALL marker will not be included in the top level makefile or project file. This is useful for having CMake create makefiles or projects for a set of examples in a project. You would want CMake to generate makefiles or project files for all the examples at the same time, but you would not want them to show up in the top level project or be built each time make is run from the top.
|
||||
|
||||
.TP
|
||||
.B use_mangled_mesa
|
||||
Copy mesa headers for use in combination with system GL.
|
||||
|
||||
.nf
|
||||
use_mangled_mesa(PATH_TO_MESA OUTPUT_DIRECTORY)
|
||||
.fi
|
||||
|
||||
The path to mesa includes, should contain gl_mangle.h. The mesa headers are copied to the specified output directory. This allows mangled mesa headers to override other GL headers by being added to the include directory path earlier.
|
||||
|
||||
.TP
|
||||
.B utility_source
|
||||
Specify the source tree of a third\-party utility.
|
||||
|
||||
.nf
|
||||
utility_source(cache_entry executable_name
|
||||
path_to_source [file1 file2 ...])
|
||||
.fi
|
||||
|
||||
When a third\-party utility's source is included in the distribution, this command specifies its location and name. The cache entry will not be set unless the path_to_source and all listed files exist. It is assumed that the source tree of the utility will have been built before it is needed.
|
||||
|
||||
|
||||
When cross compiling CMake will print a warning if a utility_source() command is executed, because in many cases it is used to build an executable which is executed later on. This doesn't work when cross compiling, since the executable can run only on their target platform. So in this case the cache entry has to be adjusted manually so it points to an executable which is runnable on the build host.
|
||||
|
||||
.TP
|
||||
.B variable_requires
|
||||
Deprecated. Use the if() command instead.
|
||||
|
||||
Assert satisfaction of an option's required variables.
|
||||
|
||||
|
||||
.nf
|
||||
variable_requires(TEST_VARIABLE RESULT_VARIABLE
|
||||
REQUIRED_VARIABLE1
|
||||
REQUIRED_VARIABLE2 ...)
|
||||
.fi
|
||||
|
||||
The first argument (TEST_VARIABLE) is the name of the variable to be tested, if that variable is false nothing else is done. If TEST_VARIABLE is true, then the next argument (RESULT_VARIABLE) is a variable that is set to true if all the required variables are set. The rest of the arguments are variables that must be true or not set to NOTFOUND to avoid an error. If any are not true, an error is reported.
|
||||
|
||||
.TP
|
||||
.B write_file
|
||||
Deprecated. Use the file(WRITE ) command instead.
|
||||
|
||||
.nf
|
||||
write_file(filename "message to write"... [APPEND])
|
||||
.fi
|
||||
|
||||
The first argument is the file name, the rest of the arguments are messages to write. If the argument APPEND is specified, then the message will be appended.
|
||||
|
||||
|
||||
NOTE 1: file(WRITE ... and file(APPEND ... do exactly the same as this one but add some more functionality.
|
||||
|
||||
|
||||
NOTE 2: When using write_file the produced file cannot be used as an input to CMake (CONFIGURE_FILE, source file ...) because it will lead to an infinite loop. Use configure_file if you want to generate input files to CMake.
|
||||
|
||||
.SH COPYRIGHT
|
||||
.PP
|
||||
Copyright 2000\-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
|
||||
|
||||
.PP
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
.PP
|
||||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
.PP
|
||||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
.PP
|
||||
Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
.PP
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
The following resources are available to get help using CMake:
|
||||
|
||||
.TP
|
||||
.B Home Page
|
||||
http://www.cmake.org
|
||||
|
||||
The primary starting point for learning about CMake.
|
||||
|
||||
.TP
|
||||
.B Frequently Asked Questions
|
||||
http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
A Wiki is provided containing answers to frequently asked questions.
|
||||
|
||||
.TP
|
||||
.B Online Documentation
|
||||
http://www.cmake.org/HTML/Documentation.html
|
||||
|
||||
Links to available documentation may be found on this web page.
|
||||
|
||||
.TP
|
||||
.B Mailing List
|
||||
http://www.cmake.org/HTML/MailingLists.html
|
||||
|
||||
For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member\-post\-only but one may sign up on the CMake web page. Please first read the full documentation at http://www.cmake.org before posting questions to the list.
|
||||
|
||||
.PP
|
||||
Summary of helpful links:
|
||||
|
||||
|
||||
.nf
|
||||
Home: http://www.cmake.org
|
||||
Docs: http://www.cmake.org/HTML/Documentation.html
|
||||
Mail: http://www.cmake.org/HTML/MailingLists.html
|
||||
FAQ: http://www.cmake.org/Wiki/CMake_FAQ
|
||||
.fi
|
||||
|
||||
8304
extern/cmake/2.85/man/man1/cmakemodules.1
vendored
Normal file
8304
extern/cmake/2.85/man/man1/cmakemodules.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
369
extern/cmake/2.85/man/man1/cmakepolicies.1
vendored
Normal file
369
extern/cmake/2.85/man/man1/cmakepolicies.1
vendored
Normal file
@@ -0,0 +1,369 @@
|
||||
.TH cmakepolicies 1 "July 08, 2011" "cmake 2.8.5"
|
||||
.SH NAME
|
||||
.PP
|
||||
cmakepolicies \- Reference of CMake policies.
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
The "cmake" executable is the CMake command\-line interface. It may be used to configure projects in scripts. Project configuration settings may be specified on the command line with the \-D option. The \-i option will cause cmake to interactively prompt for such settings.
|
||||
|
||||
.PP
|
||||
CMake is a cross\-platform build system generator. Projects specify their build process with platform\-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.
|
||||
|
||||
.SH POLICIES
|
||||
.TP
|
||||
.B CMP0000
|
||||
A minimum required CMake version must be specified.
|
||||
|
||||
CMake requires that projects specify the version of CMake to which they have been written. This policy has been put in place so users trying to build the project may be told when they need to update their CMake. Specifying a version also helps the project build with CMake versions newer than that specified. Use the cmake_minimum_required command at the top of your main CMakeLists.txt file:
|
||||
|
||||
|
||||
.nf
|
||||
cmake_minimum_required(VERSION <major>.<minor>)
|
||||
.fi
|
||||
|
||||
where "<major>.<minor>" is the version of CMake you want to support (such as "2.6"). The command will ensure that at least the given version of CMake is running and help newer versions be compatible with the project. See documentation of cmake_minimum_required for details.
|
||||
|
||||
|
||||
Note that the command invocation must appear in the CMakeLists.txt file itself; a call in an included file is not sufficient. However, the cmake_policy command may be called to set policy CMP0000 to OLD or NEW behavior explicitly. The OLD behavior is to silently ignore the missing invocation. The NEW behavior is to issue an error instead of a warning. An included file may set CMP0000 explicitly to affect how this policy is enforced for the main CMakeLists.txt file.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0.
|
||||
|
||||
.TP
|
||||
.B CMP0001
|
||||
CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
|
||||
|
||||
The OLD behavior is to check CMAKE_BACKWARDS_COMPATIBILITY and present it to the user. The NEW behavior is to ignore CMAKE_BACKWARDS_COMPATIBILITY completely.
|
||||
|
||||
|
||||
In CMake 2.4 and below the variable CMAKE_BACKWARDS_COMPATIBILITY was used to request compatibility with earlier versions of CMake. In CMake 2.6 and above all compatibility issues are handled by policies and the cmake_policy command. However, CMake must still check CMAKE_BACKWARDS_COMPATIBILITY for projects written for CMake 2.4 and below.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0002
|
||||
Logical target names must be globally unique.
|
||||
|
||||
Targets names created with add_executable, add_library, or add_custom_target are logical build target names. Logical target names must be globally unique because:
|
||||
|
||||
|
||||
.nf
|
||||
\- Unique names may be referenced unambiguously both in CMake
|
||||
code and on make tool command lines.
|
||||
\- Logical names are used by Xcode and VS IDE generators
|
||||
to produce meaningful project names for the targets.
|
||||
.fi
|
||||
|
||||
The logical name of executable and library targets does not have to correspond to the physical file names built. Consider using the OUTPUT_NAME target property to create two targets with the same physical name while keeping logical names distinct. Custom targets must simply have globally unique names (unless one uses the global property ALLOW_DUPLICATE_CUSTOM_TARGETS with a Makefiles generator).
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0003
|
||||
Libraries linked via full path no longer produce linker search paths.
|
||||
|
||||
This policy affects how libraries whose full paths are NOT known are found at link time, but was created due to a change in how CMake deals with libraries whose full paths are known. Consider the code
|
||||
|
||||
|
||||
.nf
|
||||
target_link_libraries(myexe /path/to/libA.so)
|
||||
.fi
|
||||
|
||||
CMake 2.4 and below implemented linking to libraries whose full paths are known by splitting them on the link line into separate components consisting of the linker search path and the library name. The example code might have produced something like
|
||||
|
||||
|
||||
.nf
|
||||
... \-L/path/to \-lA ...
|
||||
.fi
|
||||
|
||||
in order to link to library A. An analysis was performed to order multiple link directories such that the linker would find library A in the desired location, but there are cases in which this does not work. CMake versions 2.6 and above use the more reliable approach of passing the full path to libraries directly to the linker in most cases. The example code now produces something like
|
||||
|
||||
|
||||
.nf
|
||||
... /path/to/libA.so ....
|
||||
.fi
|
||||
|
||||
Unfortunately this change can break code like
|
||||
|
||||
|
||||
.nf
|
||||
target_link_libraries(myexe /path/to/libA.so B)
|
||||
.fi
|
||||
|
||||
where "B" is meant to find "/path/to/libB.so". This code is wrong because the user is asking the linker to find library B but has not provided a linker search path (which may be added with the link_directories command). However, with the old linking implementation the code would work accidentally because the linker search path added for library A allowed library B to be found.
|
||||
|
||||
|
||||
In order to support projects depending on linker search paths added by linking to libraries with known full paths, the OLD behavior for this policy will add the linker search paths even though they are not needed for their own libraries. When this policy is set to OLD, CMake will produce a link line such as
|
||||
|
||||
|
||||
.nf
|
||||
... \-L/path/to /path/to/libA.so \-lB ...
|
||||
.fi
|
||||
|
||||
which will allow library B to be found as it was previously. When this policy is set to NEW, CMake will produce a link line such as
|
||||
|
||||
|
||||
.nf
|
||||
... /path/to/libA.so \-lB ...
|
||||
.fi
|
||||
|
||||
which more accurately matches what the project specified.
|
||||
|
||||
|
||||
The setting for this policy used when generating the link line is that in effect when the target is created by an add_executable or add_library command. For the example described above, the code
|
||||
|
||||
|
||||
.nf
|
||||
cmake_policy(SET CMP0003 OLD) # or cmake_policy(VERSION 2.4)
|
||||
add_executable(myexe myexe.c)
|
||||
target_link_libraries(myexe /path/to/libA.so B)
|
||||
.fi
|
||||
|
||||
will work and suppress the warning for this policy. It may also be updated to work with the corrected linking approach:
|
||||
|
||||
|
||||
.nf
|
||||
cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6)
|
||||
link_directories(/path/to) # needed to find library B
|
||||
add_executable(myexe myexe.c)
|
||||
target_link_libraries(myexe /path/to/libA.so B)
|
||||
.fi
|
||||
|
||||
Even better, library B may be specified with a full path:
|
||||
|
||||
|
||||
.nf
|
||||
add_executable(myexe myexe.c)
|
||||
target_link_libraries(myexe /path/to/libA.so /path/to/libB.so)
|
||||
.fi
|
||||
|
||||
When all items on the link line have known paths CMake does not check this policy so it has no effect.
|
||||
|
||||
|
||||
Note that the warning for this policy will be issued for at most one target. This avoids flooding users with messages for every target when setting the policy once will probably fix all targets.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0004
|
||||
Libraries linked may not have leading or trailing whitespace.
|
||||
|
||||
CMake versions 2.4 and below silently removed leading and trailing whitespace from libraries linked with code like
|
||||
|
||||
|
||||
.nf
|
||||
target_link_libraries(myexe " A ")
|
||||
.fi
|
||||
|
||||
This could lead to subtle errors in user projects.
|
||||
|
||||
|
||||
The OLD behavior for this policy is to silently remove leading and trailing whitespace. The NEW behavior for this policy is to diagnose the existence of such whitespace as an error. The setting for this policy used when checking the library names is that in effect when the target is created by an add_executable or add_library command.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0005
|
||||
Preprocessor definition values are now escaped automatically.
|
||||
|
||||
This policy determines whether or not CMake should generate escaped preprocessor definition values added via add_definitions. CMake versions 2.4 and below assumed that only trivial values would be given for macros in add_definitions calls. It did not attempt to escape non\-trivial values such as string literals in generated build rules. CMake versions 2.6 and above support escaping of most values, but cannot assume the user has not added escapes already in an attempt to work around limitations in earlier versions.
|
||||
|
||||
|
||||
The OLD behavior for this policy is to place definition values given to add_definitions directly in the generated build rules without attempting to escape anything. The NEW behavior for this policy is to generate correct escapes for all native build tools automatically. See documentation of the COMPILE_DEFINITIONS target property for limitations of the escaping implementation.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0006
|
||||
Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
|
||||
|
||||
This policy determines whether the install(TARGETS) command must be given a BUNDLE DESTINATION when asked to install a target with the MACOSX_BUNDLE property set. CMake 2.4 and below did not distinguish application bundles from normal executables when installing targets. CMake 2.6 provides a BUNDLE option to the install(TARGETS) command that specifies rules specific to application bundles on the Mac. Projects should use this option when installing a target with the MACOSX_BUNDLE property set.
|
||||
|
||||
|
||||
The OLD behavior for this policy is to fall back to the RUNTIME DESTINATION if a BUNDLE DESTINATION is not given. The NEW behavior for this policy is to produce an error if a bundle target is installed without a BUNDLE DESTINATION.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0007
|
||||
list command no longer ignores empty elements.
|
||||
|
||||
This policy determines whether the list command will ignore empty elements in the list. CMake 2.4 and below list commands ignored all empty elements in the list. For example, a;b;;c would have length 3 and not 4. The OLD behavior for this policy is to ignore empty list elements. The NEW behavior for this policy is to correctly count empty elements in a list.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0008
|
||||
Libraries linked by full\-path must have a valid library file name.
|
||||
|
||||
In CMake 2.4 and below it is possible to write code like
|
||||
|
||||
|
||||
.nf
|
||||
target_link_libraries(myexe /full/path/to/somelib)
|
||||
.fi
|
||||
|
||||
where "somelib" is supposed to be a valid library file name such as "libsomelib.a" or "somelib.lib". For Makefile generators this produces an error at build time because the dependency on the full path cannot be found. For VS IDE and Xcode generators this used to work by accident because CMake would always split off the library directory and ask the linker to search for the library by name (\-lsomelib or somelib.lib). Despite the failure with Makefiles, some projects have code like this and build only with VS and/or Xcode. This version of CMake prefers to pass the full path directly to the native build tool, which will fail in this case because it does not name a valid library file.
|
||||
|
||||
|
||||
This policy determines what to do with full paths that do not appear to name a valid library file. The OLD behavior for this policy is to split the library name from the path and ask the linker to search for it. The NEW behavior for this policy is to trust the given path and pass it directly to the native build tool unchanged.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.1. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0009
|
||||
FILE GLOB_RECURSE calls should not follow symlinks by default.
|
||||
|
||||
In CMake 2.6.1 and below, FILE GLOB_RECURSE calls would follow through symlinks, sometimes coming up with unexpectedly large result sets because of symlinks to top level directories that contain hundreds of thousands of files.
|
||||
|
||||
|
||||
This policy determines whether or not to follow symlinks encountered during a FILE GLOB_RECURSE call. The OLD behavior for this policy is to follow the symlinks. The NEW behavior for this policy is not to follow the symlinks by default, but only if FOLLOW_SYMLINKS is given as an additional argument to the FILE command.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.2. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0010
|
||||
Bad variable reference syntax is an error.
|
||||
|
||||
In CMake 2.6.2 and below, incorrect variable reference syntax such as a missing close\-brace ("${FOO") was reported but did not stop processing of CMake code. This policy determines whether a bad variable reference is an error. The OLD behavior for this policy is to warn about the error, leave the string untouched, and continue. The NEW behavior for this policy is to report an error.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.3. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0011
|
||||
Included scripts do automatic cmake_policy PUSH and POP.
|
||||
|
||||
In CMake 2.6.2 and below, CMake Policy settings in scripts loaded by the include() and find_package() commands would affect the includer. Explicit invocations of cmake_policy(PUSH) and cmake_policy(POP) were required to isolate policy changes and protect the includer. While some scripts intend to affect the policies of their includer, most do not. In CMake 2.6.3 and above, include() and find_package() by default PUSH and POP an entry on the policy stack around an included script, but provide a NO_POLICY_SCOPE option to disable it. This policy determines whether or not to imply NO_POLICY_SCOPE for compatibility. The OLD behavior for this policy is to imply NO_POLICY_SCOPE for include() and find_package() commands. The NEW behavior for this policy is to allow the commands to do their default cmake_policy PUSH and POP.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.6.3. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0012
|
||||
if() recognizes numbers and boolean constants.
|
||||
|
||||
In CMake versions 2.6.4 and lower the if() command implicitly dereferenced arguments corresponding to variables, even those named like numbers or boolean constants, except for 0 and 1. Numbers and boolean constants such as true, false, yes, no, on, off, y, n, notfound, ignore (all case insensitive) were recognized in some cases but not all. For example, the code "if(TRUE)" might have evaluated as false. Numbers such as 2 were recognized only in boolean expressions like "if(NOT 2)" (leading to false) but not as a single\-argument like "if(2)" (also leading to false). Later versions of CMake prefer to treat numbers and boolean constants literally, so they should not be used as variable names.
|
||||
|
||||
|
||||
The OLD behavior for this policy is to implicitly dereference variables named like numbers and boolean constants. The NEW behavior for this policy is to recognize numbers and boolean constants without dereferencing variables with such names.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.8.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0013
|
||||
Duplicate binary directories are not allowed.
|
||||
|
||||
CMake 2.6.3 and below silently permitted add_subdirectory() calls to create the same binary directory multiple times. During build system generation files would be written and then overwritten in the build tree and could lead to strange behavior. CMake 2.6.4 and above explicitly detect duplicate binary directories. CMake 2.6.4 always considers this case an error. In CMake 2.8.0 and above this policy determines whether or not the case is an error. The OLD behavior for this policy is to allow duplicate binary directories. The NEW behavior for this policy is to disallow duplicate binary directories with an error.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.8.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0014
|
||||
Input directories must have CMakeLists.txt.
|
||||
|
||||
CMake versions before 2.8 silently ignored missing CMakeLists.txt files in directories referenced by add_subdirectory() or subdirs(), treating them as if present but empty. In CMake 2.8.0 and above this policy determines whether or not the case is an error. The OLD behavior for this policy is to silently ignore the problem. The NEW behavior for this policy is to report an error.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.8.0. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0015
|
||||
link_directories() treats paths relative to the source dir.
|
||||
|
||||
In CMake 2.8.0 and lower the link_directories() command passed relative paths unchanged to the linker. In CMake 2.8.1 and above the link_directories() command prefers to interpret relative paths with respect to CMAKE_CURRENT_SOURCE_DIR, which is consistent with include_directories() and other commands. The OLD behavior for this policy is to use relative paths verbatim in the linker command. The NEW behavior for this policy is to convert relative paths to absolute paths by appending the relative path to CMAKE_CURRENT_SOURCE_DIR.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.8.1. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0016
|
||||
target_link_libraries() reports error if only argument is not a target.
|
||||
|
||||
In CMake 2.8.2 and lower the target_link_libraries() command silently ignored if it was called with only one argument, and this argument wasn't a valid target. In CMake 2.8.3 and above it reports an error in this case.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.8.3. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.TP
|
||||
.B CMP0017
|
||||
Prefer files from the CMake module directory when including from there.
|
||||
|
||||
Starting with CMake 2.8.4, if a cmake\-module shipped with CMake (i.e. located in the CMake module directory) calls include() or find_package(), the files located in the the CMake module directory are preferred over the files in CMAKE_MODULE_PATH. This makes sure that the modules belonging to CMake always get those files included which they expect, and against which they were developed and tested. In call other cases, the files found in CMAKE_MODULE_PATH still take precedence over the ones in the CMake module directory. The OLD behaviour is to always prefer files from CMAKE_MODULE_PATH over files from the CMake modules directory.
|
||||
|
||||
|
||||
This policy was introduced in CMake version 2.8.4. CMake version 2.8.5 warns when the policy is not set and uses OLD behavior. Use the cmake_policy command to set it to OLD or NEW explicitly.
|
||||
|
||||
.SH COPYRIGHT
|
||||
.PP
|
||||
Copyright 2000\-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
|
||||
|
||||
.PP
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
.PP
|
||||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
.PP
|
||||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
.PP
|
||||
Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
.PP
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
.B ccmake(1), cpack(1), ctest(1), cmakecommands(1), cmakecompat(1), cmakemodules(1), cmakeprops(1), cmakevars(1)
|
||||
|
||||
.PP
|
||||
The following resources are available to get help using CMake:
|
||||
|
||||
.TP
|
||||
.B Home Page
|
||||
http://www.cmake.org
|
||||
|
||||
The primary starting point for learning about CMake.
|
||||
|
||||
.TP
|
||||
.B Frequently Asked Questions
|
||||
http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
A Wiki is provided containing answers to frequently asked questions.
|
||||
|
||||
.TP
|
||||
.B Online Documentation
|
||||
http://www.cmake.org/HTML/Documentation.html
|
||||
|
||||
Links to available documentation may be found on this web page.
|
||||
|
||||
.TP
|
||||
.B Mailing List
|
||||
http://www.cmake.org/HTML/MailingLists.html
|
||||
|
||||
For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member\-post\-only but one may sign up on the CMake web page. Please first read the full documentation at http://www.cmake.org before posting questions to the list.
|
||||
|
||||
.PP
|
||||
Summary of helpful links:
|
||||
|
||||
|
||||
.nf
|
||||
Home: http://www.cmake.org
|
||||
Docs: http://www.cmake.org/HTML/Documentation.html
|
||||
Mail: http://www.cmake.org/HTML/MailingLists.html
|
||||
FAQ: http://www.cmake.org/Wiki/CMake_FAQ
|
||||
.fi
|
||||
|
||||
1340
extern/cmake/2.85/man/man1/cmakeprops.1
vendored
Normal file
1340
extern/cmake/2.85/man/man1/cmakeprops.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1133
extern/cmake/2.85/man/man1/cmakevars.1
vendored
Normal file
1133
extern/cmake/2.85/man/man1/cmakevars.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
154
extern/cmake/2.85/man/man1/cpack.1
vendored
Normal file
154
extern/cmake/2.85/man/man1/cpack.1
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
.TH cpack 1 "July 08, 2011" "cpack 2.8.5"
|
||||
.SH NAME
|
||||
.PP
|
||||
.nf
|
||||
cpack \- Packaging driver provided by CMake.
|
||||
.fi
|
||||
|
||||
.SH USAGE
|
||||
.PP
|
||||
.nf
|
||||
cpack \-G <generator> [options]
|
||||
.fi
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
The "cpack" executable is the CMake packaging program. CMake\-generated build trees created for projects that use the INSTALL_* commands have packaging support. This program will generate the package.
|
||||
|
||||
.PP
|
||||
CMake is a cross\-platform build system generator. Projects specify their build process with platform\-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B -G <generator>
|
||||
Use the specified generator to generate package.
|
||||
|
||||
CPack may support multiple native packaging systems on certain platforms. A generator is responsible for generating input files for particular system and invoking that systems. Possible generator names are specified in the Generators section.
|
||||
|
||||
.TP
|
||||
.B -C <Configuration>
|
||||
Specify the project configuration
|
||||
|
||||
This option specifies the configuration that the project was build with, for example 'Debug', 'Release'.
|
||||
|
||||
.TP
|
||||
.B -D <var>=<value>
|
||||
Set a CPack variable.
|
||||
|
||||
Set a variable that can be used by the generator.
|
||||
|
||||
.TP
|
||||
.B --config <config file>
|
||||
Specify the config file.
|
||||
|
||||
Specify the config file to use to create the package. By default CPackConfig.cmake in the current directory will be used.
|
||||
|
||||
.SH GENERATORS
|
||||
.TP
|
||||
.B NSIS
|
||||
Null Soft Installer
|
||||
|
||||
.TP
|
||||
.B STGZ
|
||||
Self extracting Tar GZip compression
|
||||
|
||||
.TP
|
||||
.B TBZ2
|
||||
Tar BZip2 compression
|
||||
|
||||
.TP
|
||||
.B TGZ
|
||||
Tar GZip compression
|
||||
|
||||
.TP
|
||||
.B TZ
|
||||
Tar Compress compression
|
||||
|
||||
.TP
|
||||
.B ZIP
|
||||
ZIP file format
|
||||
|
||||
.SH PROPERTIES
|
||||
.PP
|
||||
.nf
|
||||
CMake Properties \- Properties supported by CMake, the Cross\-Platform Makefile Generator.
|
||||
.fi
|
||||
|
||||
.PP
|
||||
This is the documentation for the properties supported by CMake. Properties can have different scopes. They can either be assigned to a source file, a directory, a target or globally to CMake. By modifying the values of properties the behaviour of the build system can be customized.
|
||||
|
||||
.SH COMPATIBILITY COMMANDS
|
||||
.PP
|
||||
.nf
|
||||
CMake Compatibility Listfile Commands \- Obsolete commands supported by CMake for compatibility.
|
||||
.fi
|
||||
|
||||
.PP
|
||||
This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;\-)
|
||||
|
||||
.SH MODULES
|
||||
.SH COPYRIGHT
|
||||
.PP
|
||||
Copyright 2000\-2009 Kitware, Inc., Insight Software Consortium. All rights reserved.
|
||||
|
||||
.PP
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
.PP
|
||||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
.PP
|
||||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
.PP
|
||||
Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
.PP
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
.B cmake(1), ccmake(1)
|
||||
|
||||
.PP
|
||||
The following resources are available to get help using CMake:
|
||||
|
||||
.TP
|
||||
.B Home Page
|
||||
http://www.cmake.org
|
||||
|
||||
The primary starting point for learning about CMake.
|
||||
|
||||
.TP
|
||||
.B Frequently Asked Questions
|
||||
http://www.cmake.org/Wiki/CMake_FAQ
|
||||
|
||||
A Wiki is provided containing answers to frequently asked questions.
|
||||
|
||||
.TP
|
||||
.B Online Documentation
|
||||
http://www.cmake.org/HTML/Documentation.html
|
||||
|
||||
Links to available documentation may be found on this web page.
|
||||
|
||||
.TP
|
||||
.B Mailing List
|
||||
http://www.cmake.org/HTML/MailingLists.html
|
||||
|
||||
For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member\-post\-only but one may sign up on the CMake web page. Please first read the full documentation at http://www.cmake.org before posting questions to the list.
|
||||
|
||||
.PP
|
||||
Summary of helpful links:
|
||||
|
||||
|
||||
.nf
|
||||
Home: http://www.cmake.org
|
||||
Docs: http://www.cmake.org/HTML/Documentation.html
|
||||
Mail: http://www.cmake.org/HTML/MailingLists.html
|
||||
FAQ: http://www.cmake.org/Wiki/CMake_FAQ
|
||||
.fi
|
||||
|
||||
.SH AUTHOR
|
||||
.PP
|
||||
This manual page was generated by the "\-\-help\-man" option.
|
||||
|
||||
2508
extern/cmake/2.85/man/man1/ctest.1
vendored
Normal file
2508
extern/cmake/2.85/man/man1/ctest.1
vendored
Normal file
File diff suppressed because it is too large
Load Diff
29
extern/cmake/2.85/share/cmake-2.8/Modules/AddFileDependencies.cmake
vendored
Normal file
29
extern/cmake/2.85/share/cmake-2.8/Modules/AddFileDependencies.cmake
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# - ADD_FILE_DEPENDENCIES(source_file depend_files...)
|
||||
# Adds the given files as dependencies to source_file
|
||||
#
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2006-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
MACRO(ADD_FILE_DEPENDENCIES _file)
|
||||
|
||||
GET_SOURCE_FILE_PROPERTY(_deps ${_file} OBJECT_DEPENDS)
|
||||
IF (_deps)
|
||||
SET(_deps ${_deps} ${ARGN})
|
||||
ELSE (_deps)
|
||||
SET(_deps ${ARGN})
|
||||
ENDIF (_deps)
|
||||
|
||||
SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES OBJECT_DEPENDS "${_deps}")
|
||||
|
||||
ENDMACRO(ADD_FILE_DEPENDENCIES)
|
||||
786
extern/cmake/2.85/share/cmake-2.8/Modules/BundleUtilities.cmake
vendored
Normal file
786
extern/cmake/2.85/share/cmake-2.8/Modules/BundleUtilities.cmake
vendored
Normal file
@@ -0,0 +1,786 @@
|
||||
# - Functions to help assemble a standalone bundle application.
|
||||
# A collection of CMake utility functions useful for dealing with .app
|
||||
# bundles on the Mac and bundle-like directories on any OS.
|
||||
#
|
||||
# The following functions are provided by this module:
|
||||
# fixup_bundle
|
||||
# copy_and_fixup_bundle
|
||||
# verify_app
|
||||
# get_bundle_main_executable
|
||||
# get_dotapp_dir
|
||||
# get_bundle_and_executable
|
||||
# get_bundle_all_executables
|
||||
# get_item_key
|
||||
# clear_bundle_keys
|
||||
# set_bundle_key_values
|
||||
# get_bundle_keys
|
||||
# copy_resolved_item_into_bundle
|
||||
# copy_resolved_framework_into_bundle
|
||||
# fixup_bundle_item
|
||||
# verify_bundle_prerequisites
|
||||
# verify_bundle_symlinks
|
||||
# Requires CMake 2.6 or greater because it uses function, break and
|
||||
# PARENT_SCOPE. Also depends on GetPrerequisites.cmake.
|
||||
#
|
||||
# FIXUP_BUNDLE(<app> <libs> <dirs>)
|
||||
# Fix up a bundle in-place and make it standalone, such that it can be
|
||||
# drag-n-drop copied to another machine and run on that machine as long as all
|
||||
# of the system libraries are compatible.
|
||||
#
|
||||
# If you pass plugins to fixup_bundle as the libs parameter, you should install
|
||||
# them or copy them into the bundle before calling fixup_bundle. The "libs"
|
||||
# parameter is a list of libraries that must be fixed up, but that cannot be
|
||||
# determined by otool output analysis. (i.e., plugins)
|
||||
#
|
||||
# Gather all the keys for all the executables and libraries in a bundle, and
|
||||
# then, for each key, copy each prerequisite into the bundle. Then fix each one
|
||||
# up according to its own list of prerequisites.
|
||||
#
|
||||
# Then clear all the keys and call verify_app on the final bundle to ensure
|
||||
# that it is truly standalone.
|
||||
#
|
||||
# COPY_AND_FIXUP_BUNDLE(<src> <dst> <libs> <dirs>)
|
||||
# Makes a copy of the bundle <src> at location <dst> and then fixes up the
|
||||
# new copied bundle in-place at <dst>...
|
||||
#
|
||||
# VERIFY_APP(<app>)
|
||||
# Verifies that an application <app> appears valid based on running analysis
|
||||
# tools on it. Calls "message(FATAL_ERROR" if the application is not verified.
|
||||
#
|
||||
# GET_BUNDLE_MAIN_EXECUTABLE(<bundle> <result_var>)
|
||||
# The result will be the full path name of the bundle's main executable file
|
||||
# or an "error:" prefixed string if it could not be determined.
|
||||
#
|
||||
# GET_DOTAPP_DIR(<exe> <dotapp_dir_var>)
|
||||
# Returns the nearest parent dir whose name ends with ".app" given the full
|
||||
# path to an executable. If there is no such parent dir, then simply return
|
||||
# the dir containing the executable.
|
||||
#
|
||||
# The returned directory may or may not exist.
|
||||
#
|
||||
# GET_BUNDLE_AND_EXECUTABLE(<app> <bundle_var> <executable_var> <valid_var>)
|
||||
# Takes either a ".app" directory name or the name of an executable
|
||||
# nested inside a ".app" directory and returns the path to the ".app"
|
||||
# directory in <bundle_var> and the path to its main executable in
|
||||
# <executable_var>
|
||||
#
|
||||
# GET_BUNDLE_ALL_EXECUTABLES(<bundle> <exes_var>)
|
||||
# Scans the given bundle recursively for all executable files and accumulates
|
||||
# them into a variable.
|
||||
#
|
||||
# GET_ITEM_KEY(<item> <key_var>)
|
||||
# Given a file (item) name, generate a key that should be unique considering
|
||||
# the set of libraries that need copying or fixing up to make a bundle
|
||||
# standalone. This is essentially the file name including extension with "."
|
||||
# replaced by "_"
|
||||
#
|
||||
# This key is used as a prefix for CMake variables so that we can associate a
|
||||
# set of variables with a given item based on its key.
|
||||
#
|
||||
# CLEAR_BUNDLE_KEYS(<keys_var>)
|
||||
# Loop over the list of keys, clearing all the variables associated with each
|
||||
# key. After the loop, clear the list of keys itself.
|
||||
#
|
||||
# Caller of get_bundle_keys should call clear_bundle_keys when done with list
|
||||
# of keys.
|
||||
#
|
||||
# SET_BUNDLE_KEY_VALUES(<keys_var> <context> <item> <exepath> <dirs>
|
||||
# <copyflag>)
|
||||
# Add a key to the list (if necessary) for the given item. If added,
|
||||
# also set all the variables associated with that key.
|
||||
#
|
||||
# GET_BUNDLE_KEYS(<app> <libs> <dirs> <keys_var>)
|
||||
# Loop over all the executable and library files within the bundle (and given
|
||||
# as extra <libs>) and accumulate a list of keys representing them. Set
|
||||
# values associated with each key such that we can loop over all of them and
|
||||
# copy prerequisite libs into the bundle and then do appropriate
|
||||
# install_name_tool fixups.
|
||||
#
|
||||
# COPY_RESOLVED_ITEM_INTO_BUNDLE(<resolved_item> <resolved_embedded_item>)
|
||||
# Copy a resolved item into the bundle if necessary. Copy is not necessary if
|
||||
# the resolved_item is "the same as" the resolved_embedded_item.
|
||||
#
|
||||
# COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE(<resolved_item> <resolved_embedded_item>)
|
||||
# Copy a resolved framework into the bundle if necessary. Copy is not necessary
|
||||
# if the resolved_item is "the same as" the resolved_embedded_item.
|
||||
#
|
||||
# By default, BU_COPY_FULL_FRAMEWORK_CONTENTS is not set. If you want full
|
||||
# frameworks embedded in your bundles, set BU_COPY_FULL_FRAMEWORK_CONTENTS to
|
||||
# ON before calling fixup_bundle. By default,
|
||||
# COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE copies the framework dylib itself plus
|
||||
# the framework Resources directory.
|
||||
#
|
||||
# FIXUP_BUNDLE_ITEM(<resolved_embedded_item> <exepath> <dirs>)
|
||||
# Get the direct/non-system prerequisites of the resolved embedded item. For
|
||||
# each prerequisite, change the way it is referenced to the value of the
|
||||
# _EMBEDDED_ITEM keyed variable for that prerequisite. (Most likely changing to
|
||||
# an "@executable_path" style reference.)
|
||||
#
|
||||
# This function requires that the resolved_embedded_item be "inside" the bundle
|
||||
# already. In other words, if you pass plugins to fixup_bundle as the libs
|
||||
# parameter, you should install them or copy them into the bundle before
|
||||
# calling fixup_bundle. The "libs" parameter is a list of libraries that must
|
||||
# be fixed up, but that cannot be determined by otool output analysis. (i.e.,
|
||||
# plugins)
|
||||
#
|
||||
# Also, change the id of the item being fixed up to its own _EMBEDDED_ITEM
|
||||
# value.
|
||||
#
|
||||
# Accumulate changes in a local variable and make *one* call to
|
||||
# install_name_tool at the end of the function with all the changes at once.
|
||||
#
|
||||
# If the BU_CHMOD_BUNDLE_ITEMS variable is set then bundle items will be
|
||||
# marked writable before install_name_tool tries to change them.
|
||||
#
|
||||
# VERIFY_BUNDLE_PREREQUISITES(<bundle> <result_var> <info_var>)
|
||||
# Verifies that the sum of all prerequisites of all files inside the bundle
|
||||
# are contained within the bundle or are "system" libraries, presumed to exist
|
||||
# everywhere.
|
||||
#
|
||||
# VERIFY_BUNDLE_SYMLINKS(<bundle> <result_var> <info_var>)
|
||||
# Verifies that any symlinks found in the bundle point to other files that are
|
||||
# already also in the bundle... Anything that points to an external file causes
|
||||
# this function to fail the verification.
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2008-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# The functions defined in this file depend on the get_prerequisites function
|
||||
# (and possibly others) found in:
|
||||
#
|
||||
get_filename_component(BundleUtilities_cmake_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
include("${BundleUtilities_cmake_dir}/GetPrerequisites.cmake")
|
||||
|
||||
|
||||
function(get_bundle_main_executable bundle result_var)
|
||||
set(result "error: '${bundle}/Contents/Info.plist' file does not exist")
|
||||
|
||||
if(EXISTS "${bundle}/Contents/Info.plist")
|
||||
set(result "error: no CFBundleExecutable in '${bundle}/Contents/Info.plist' file")
|
||||
set(line_is_main_executable 0)
|
||||
set(bundle_executable "")
|
||||
|
||||
# Read Info.plist as a list of lines:
|
||||
#
|
||||
set(eol_char "E")
|
||||
file(READ "${bundle}/Contents/Info.plist" info_plist)
|
||||
string(REGEX REPLACE ";" "\\\\;" info_plist "${info_plist}")
|
||||
string(REGEX REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
|
||||
|
||||
# Scan the lines for "<key>CFBundleExecutable</key>" - the line after that
|
||||
# is the name of the main executable.
|
||||
#
|
||||
foreach(line ${info_plist})
|
||||
if(line_is_main_executable)
|
||||
string(REGEX REPLACE "^.*<string>(.*)</string>.*$" "\\1" bundle_executable "${line}")
|
||||
break()
|
||||
endif(line_is_main_executable)
|
||||
|
||||
if(line MATCHES "^.*<key>CFBundleExecutable</key>.*$")
|
||||
set(line_is_main_executable 1)
|
||||
endif(line MATCHES "^.*<key>CFBundleExecutable</key>.*$")
|
||||
endforeach(line)
|
||||
|
||||
if(NOT "${bundle_executable}" STREQUAL "")
|
||||
if(EXISTS "${bundle}/Contents/MacOS/${bundle_executable}")
|
||||
set(result "${bundle}/Contents/MacOS/${bundle_executable}")
|
||||
else(EXISTS "${bundle}/Contents/MacOS/${bundle_executable}")
|
||||
|
||||
# Ultimate goal:
|
||||
# If not in "Contents/MacOS" then scan the bundle for matching files. If
|
||||
# there is only one executable file that matches, then use it, otherwise
|
||||
# it's an error...
|
||||
#
|
||||
#file(GLOB_RECURSE file_list "${bundle}/${bundle_executable}")
|
||||
|
||||
# But for now, pragmatically, it's an error. Expect the main executable
|
||||
# for the bundle to be in Contents/MacOS, it's an error if it's not:
|
||||
#
|
||||
set(result "error: '${bundle}/Contents/MacOS/${bundle_executable}' does not exist")
|
||||
endif(EXISTS "${bundle}/Contents/MacOS/${bundle_executable}")
|
||||
endif(NOT "${bundle_executable}" STREQUAL "")
|
||||
else(EXISTS "${bundle}/Contents/Info.plist")
|
||||
#
|
||||
# More inclusive technique... (This one would work on Windows and Linux
|
||||
# too, if a developer followed the typical Mac bundle naming convention...)
|
||||
#
|
||||
# If there is no Info.plist file, try to find an executable with the same
|
||||
# base name as the .app directory:
|
||||
#
|
||||
endif(EXISTS "${bundle}/Contents/Info.plist")
|
||||
|
||||
set(${result_var} "${result}" PARENT_SCOPE)
|
||||
endfunction(get_bundle_main_executable)
|
||||
|
||||
|
||||
function(get_dotapp_dir exe dotapp_dir_var)
|
||||
set(s "${exe}")
|
||||
|
||||
if(s MATCHES "^.*/.*\\.app/.*$")
|
||||
# If there is a ".app" parent directory,
|
||||
# ascend until we hit it:
|
||||
# (typical of a Mac bundle executable)
|
||||
#
|
||||
set(done 0)
|
||||
while(NOT ${done})
|
||||
get_filename_component(snamewe "${s}" NAME_WE)
|
||||
get_filename_component(sname "${s}" NAME)
|
||||
get_filename_component(sdir "${s}" PATH)
|
||||
set(s "${sdir}")
|
||||
if(sname MATCHES "\\.app$")
|
||||
set(done 1)
|
||||
set(dotapp_dir "${sdir}/${sname}")
|
||||
endif(sname MATCHES "\\.app$")
|
||||
endwhile(NOT ${done})
|
||||
else(s MATCHES "^.*/.*\\.app/.*$")
|
||||
# Otherwise use a directory containing the exe
|
||||
# (typical of a non-bundle executable on Mac, Windows or Linux)
|
||||
#
|
||||
is_file_executable("${s}" is_executable)
|
||||
if(is_executable)
|
||||
get_filename_component(sdir "${s}" PATH)
|
||||
set(dotapp_dir "${sdir}")
|
||||
else(is_executable)
|
||||
set(dotapp_dir "${s}")
|
||||
endif(is_executable)
|
||||
endif(s MATCHES "^.*/.*\\.app/.*$")
|
||||
|
||||
|
||||
set(${dotapp_dir_var} "${dotapp_dir}" PARENT_SCOPE)
|
||||
endfunction(get_dotapp_dir)
|
||||
|
||||
|
||||
function(get_bundle_and_executable app bundle_var executable_var valid_var)
|
||||
set(valid 0)
|
||||
|
||||
if(EXISTS "${app}")
|
||||
# Is it a directory ending in .app?
|
||||
if(IS_DIRECTORY "${app}")
|
||||
if(app MATCHES "\\.app$")
|
||||
get_bundle_main_executable("${app}" executable)
|
||||
if(EXISTS "${app}" AND EXISTS "${executable}")
|
||||
set(${bundle_var} "${app}" PARENT_SCOPE)
|
||||
set(${executable_var} "${executable}" PARENT_SCOPE)
|
||||
set(valid 1)
|
||||
#message(STATUS "info: handled .app directory case...")
|
||||
else(EXISTS "${app}" AND EXISTS "${executable}")
|
||||
message(STATUS "warning: *NOT* handled - .app directory case...")
|
||||
endif(EXISTS "${app}" AND EXISTS "${executable}")
|
||||
else(app MATCHES "\\.app$")
|
||||
message(STATUS "warning: *NOT* handled - directory but not .app case...")
|
||||
endif(app MATCHES "\\.app$")
|
||||
else(IS_DIRECTORY "${app}")
|
||||
# Is it an executable file?
|
||||
is_file_executable("${app}" is_executable)
|
||||
if(is_executable)
|
||||
get_dotapp_dir("${app}" dotapp_dir)
|
||||
if(EXISTS "${dotapp_dir}")
|
||||
set(${bundle_var} "${dotapp_dir}" PARENT_SCOPE)
|
||||
set(${executable_var} "${app}" PARENT_SCOPE)
|
||||
set(valid 1)
|
||||
#message(STATUS "info: handled executable file in .app dir case...")
|
||||
else()
|
||||
get_filename_component(app_dir "${app}" PATH)
|
||||
set(${bundle_var} "${app_dir}" PARENT_SCOPE)
|
||||
set(${executable_var} "${app}" PARENT_SCOPE)
|
||||
set(valid 1)
|
||||
#message(STATUS "info: handled executable file in any dir case...")
|
||||
endif()
|
||||
else(is_executable)
|
||||
message(STATUS "warning: *NOT* handled - not .app dir, not executable file...")
|
||||
endif(is_executable)
|
||||
endif(IS_DIRECTORY "${app}")
|
||||
else(EXISTS "${app}")
|
||||
message(STATUS "warning: *NOT* handled - directory/file does not exist...")
|
||||
endif(EXISTS "${app}")
|
||||
|
||||
if(NOT valid)
|
||||
set(${bundle_var} "error: not a bundle" PARENT_SCOPE)
|
||||
set(${executable_var} "error: not a bundle" PARENT_SCOPE)
|
||||
endif(NOT valid)
|
||||
|
||||
set(${valid_var} ${valid} PARENT_SCOPE)
|
||||
endfunction(get_bundle_and_executable)
|
||||
|
||||
|
||||
function(get_bundle_all_executables bundle exes_var)
|
||||
set(exes "")
|
||||
|
||||
file(GLOB_RECURSE file_list "${bundle}/*")
|
||||
foreach(f ${file_list})
|
||||
is_file_executable("${f}" is_executable)
|
||||
if(is_executable)
|
||||
set(exes ${exes} "${f}")
|
||||
endif(is_executable)
|
||||
endforeach(f)
|
||||
|
||||
set(${exes_var} "${exes}" PARENT_SCOPE)
|
||||
endfunction(get_bundle_all_executables)
|
||||
|
||||
|
||||
function(get_item_key item key_var)
|
||||
get_filename_component(item_name "${item}" NAME)
|
||||
if(WIN32)
|
||||
string(TOLOWER "${item_name}" item_name)
|
||||
endif()
|
||||
string(REGEX REPLACE "\\." "_" ${key_var} "${item_name}")
|
||||
set(${key_var} ${${key_var}} PARENT_SCOPE)
|
||||
endfunction(get_item_key)
|
||||
|
||||
|
||||
function(clear_bundle_keys keys_var)
|
||||
foreach(key ${${keys_var}})
|
||||
set(${key}_ITEM PARENT_SCOPE)
|
||||
set(${key}_RESOLVED_ITEM PARENT_SCOPE)
|
||||
set(${key}_DEFAULT_EMBEDDED_PATH PARENT_SCOPE)
|
||||
set(${key}_EMBEDDED_ITEM PARENT_SCOPE)
|
||||
set(${key}_RESOLVED_EMBEDDED_ITEM PARENT_SCOPE)
|
||||
set(${key}_COPYFLAG PARENT_SCOPE)
|
||||
endforeach(key)
|
||||
set(${keys_var} PARENT_SCOPE)
|
||||
endfunction(clear_bundle_keys)
|
||||
|
||||
|
||||
function(set_bundle_key_values keys_var context item exepath dirs copyflag)
|
||||
get_filename_component(item_name "${item}" NAME)
|
||||
|
||||
get_item_key("${item}" key)
|
||||
|
||||
list(LENGTH ${keys_var} length_before)
|
||||
gp_append_unique(${keys_var} "${key}")
|
||||
list(LENGTH ${keys_var} length_after)
|
||||
|
||||
if(NOT length_before EQUAL length_after)
|
||||
gp_resolve_item("${context}" "${item}" "${exepath}" "${dirs}" resolved_item)
|
||||
|
||||
gp_item_default_embedded_path("${item}" default_embedded_path)
|
||||
|
||||
if(item MATCHES "[^/]+\\.framework/")
|
||||
# For frameworks, construct the name under the embedded path from the
|
||||
# opening "${item_name}.framework/" to the closing "/${item_name}":
|
||||
#
|
||||
string(REGEX REPLACE "^.*(${item_name}.framework/.*/${item_name}).*$" "${default_embedded_path}/\\1" embedded_item "${item}")
|
||||
else(item MATCHES "[^/]+\\.framework/")
|
||||
# For other items, just use the same name as the original, but in the
|
||||
# embedded path:
|
||||
#
|
||||
set(embedded_item "${default_embedded_path}/${item_name}")
|
||||
endif(item MATCHES "[^/]+\\.framework/")
|
||||
|
||||
# Replace @executable_path and resolve ".." references:
|
||||
#
|
||||
string(REPLACE "@executable_path" "${exepath}" resolved_embedded_item "${embedded_item}")
|
||||
get_filename_component(resolved_embedded_item "${resolved_embedded_item}" ABSOLUTE)
|
||||
|
||||
# *But* -- if we are not copying, then force resolved_embedded_item to be
|
||||
# the same as resolved_item. In the case of multiple executables in the
|
||||
# original bundle, using the default_embedded_path results in looking for
|
||||
# the resolved executable next to the main bundle executable. This is here
|
||||
# so that exes in the other sibling directories (like "bin") get fixed up
|
||||
# properly...
|
||||
#
|
||||
if(NOT copyflag)
|
||||
set(resolved_embedded_item "${resolved_item}")
|
||||
endif(NOT copyflag)
|
||||
|
||||
set(${keys_var} ${${keys_var}} PARENT_SCOPE)
|
||||
set(${key}_ITEM "${item}" PARENT_SCOPE)
|
||||
set(${key}_RESOLVED_ITEM "${resolved_item}" PARENT_SCOPE)
|
||||
set(${key}_DEFAULT_EMBEDDED_PATH "${default_embedded_path}" PARENT_SCOPE)
|
||||
set(${key}_EMBEDDED_ITEM "${embedded_item}" PARENT_SCOPE)
|
||||
set(${key}_RESOLVED_EMBEDDED_ITEM "${resolved_embedded_item}" PARENT_SCOPE)
|
||||
set(${key}_COPYFLAG "${copyflag}" PARENT_SCOPE)
|
||||
else(NOT length_before EQUAL length_after)
|
||||
#message("warning: item key '${key}' already in the list, subsequent references assumed identical to first")
|
||||
endif(NOT length_before EQUAL length_after)
|
||||
endfunction(set_bundle_key_values)
|
||||
|
||||
|
||||
function(get_bundle_keys app libs dirs keys_var)
|
||||
set(${keys_var} PARENT_SCOPE)
|
||||
|
||||
get_bundle_and_executable("${app}" bundle executable valid)
|
||||
if(valid)
|
||||
# Always use the exepath of the main bundle executable for @executable_path
|
||||
# replacements:
|
||||
#
|
||||
get_filename_component(exepath "${executable}" PATH)
|
||||
|
||||
# But do fixups on all executables in the bundle:
|
||||
#
|
||||
get_bundle_all_executables("${bundle}" exes)
|
||||
|
||||
# For each extra lib, accumulate a key as well and then also accumulate
|
||||
# any of its prerequisites. (Extra libs are typically dynamically loaded
|
||||
# plugins: libraries that are prerequisites for full runtime functionality
|
||||
# but that do not show up in otool -L output...)
|
||||
#
|
||||
foreach(lib ${libs})
|
||||
set_bundle_key_values(${keys_var} "${lib}" "${lib}" "${exepath}" "${dirs}" 0)
|
||||
|
||||
set(prereqs "")
|
||||
get_prerequisites("${lib}" prereqs 1 1 "${exepath}" "${dirs}")
|
||||
foreach(pr ${prereqs})
|
||||
set_bundle_key_values(${keys_var} "${lib}" "${pr}" "${exepath}" "${dirs}" 1)
|
||||
endforeach(pr)
|
||||
endforeach(lib)
|
||||
|
||||
# For each executable found in the bundle, accumulate keys as we go.
|
||||
# The list of keys should be complete when all prerequisites of all
|
||||
# binaries in the bundle have been analyzed.
|
||||
#
|
||||
foreach(exe ${exes})
|
||||
# Add the exe itself to the keys:
|
||||
#
|
||||
set_bundle_key_values(${keys_var} "${exe}" "${exe}" "${exepath}" "${dirs}" 0)
|
||||
|
||||
# Add each prerequisite to the keys:
|
||||
#
|
||||
set(prereqs "")
|
||||
get_prerequisites("${exe}" prereqs 1 1 "${exepath}" "${dirs}")
|
||||
foreach(pr ${prereqs})
|
||||
set_bundle_key_values(${keys_var} "${exe}" "${pr}" "${exepath}" "${dirs}" 1)
|
||||
endforeach(pr)
|
||||
endforeach(exe)
|
||||
|
||||
# Propagate values to caller's scope:
|
||||
#
|
||||
set(${keys_var} ${${keys_var}} PARENT_SCOPE)
|
||||
foreach(key ${${keys_var}})
|
||||
set(${key}_ITEM "${${key}_ITEM}" PARENT_SCOPE)
|
||||
set(${key}_RESOLVED_ITEM "${${key}_RESOLVED_ITEM}" PARENT_SCOPE)
|
||||
set(${key}_DEFAULT_EMBEDDED_PATH "${${key}_DEFAULT_EMBEDDED_PATH}" PARENT_SCOPE)
|
||||
set(${key}_EMBEDDED_ITEM "${${key}_EMBEDDED_ITEM}" PARENT_SCOPE)
|
||||
set(${key}_RESOLVED_EMBEDDED_ITEM "${${key}_RESOLVED_EMBEDDED_ITEM}" PARENT_SCOPE)
|
||||
set(${key}_COPYFLAG "${${key}_COPYFLAG}" PARENT_SCOPE)
|
||||
endforeach(key)
|
||||
endif(valid)
|
||||
endfunction(get_bundle_keys)
|
||||
|
||||
|
||||
function(copy_resolved_item_into_bundle resolved_item resolved_embedded_item)
|
||||
if(WIN32)
|
||||
# ignore case on Windows
|
||||
string(TOLOWER "${resolved_item}" resolved_item_compare)
|
||||
string(TOLOWER "${resolved_embedded_item}" resolved_embedded_item_compare)
|
||||
else()
|
||||
set(resolved_item_compare "${resolved_item}")
|
||||
set(resolved_embedded_item_compare "${resolved_embedded_item}")
|
||||
endif()
|
||||
|
||||
if("${resolved_item_compare}" STREQUAL "${resolved_embedded_item_compare}")
|
||||
message(STATUS "warning: resolved_item == resolved_embedded_item - not copying...")
|
||||
else()
|
||||
#message(STATUS "copying COMMAND ${CMAKE_COMMAND} -E copy ${resolved_item} ${resolved_embedded_item}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${resolved_item}" "${resolved_embedded_item}")
|
||||
if(UNIX AND NOT APPLE)
|
||||
file(RPATH_REMOVE FILE "${resolved_embedded_item}")
|
||||
endif(UNIX AND NOT APPLE)
|
||||
endif()
|
||||
|
||||
endfunction(copy_resolved_item_into_bundle)
|
||||
|
||||
|
||||
function(copy_resolved_framework_into_bundle resolved_item resolved_embedded_item)
|
||||
if(WIN32)
|
||||
# ignore case on Windows
|
||||
string(TOLOWER "${resolved_item}" resolved_item_compare)
|
||||
string(TOLOWER "${resolved_embedded_item}" resolved_embedded_item_compare)
|
||||
else()
|
||||
set(resolved_item_compare "${resolved_item}")
|
||||
set(resolved_embedded_item_compare "${resolved_embedded_item}")
|
||||
endif()
|
||||
|
||||
if("${resolved_item_compare}" STREQUAL "${resolved_embedded_item_compare}")
|
||||
message(STATUS "warning: resolved_item == resolved_embedded_item - not copying...")
|
||||
else()
|
||||
if(BU_COPY_FULL_FRAMEWORK_CONTENTS)
|
||||
# Full Framework (everything):
|
||||
get_filename_component(resolved_dir "${resolved_item}" PATH)
|
||||
get_filename_component(resolved_dir "${resolved_dir}/../.." ABSOLUTE)
|
||||
get_filename_component(resolved_embedded_dir "${resolved_embedded_item}" PATH)
|
||||
get_filename_component(resolved_embedded_dir "${resolved_embedded_dir}/../.." ABSOLUTE)
|
||||
#message(STATUS "copying COMMAND ${CMAKE_COMMAND} -E copy_directory '${resolved_dir}' '${resolved_embedded_dir}'")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory "${resolved_dir}" "${resolved_embedded_dir}")
|
||||
else()
|
||||
# Framework lib itself:
|
||||
#message(STATUS "copying COMMAND ${CMAKE_COMMAND} -E copy ${resolved_item} ${resolved_embedded_item}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${resolved_item}" "${resolved_embedded_item}")
|
||||
|
||||
# Plus Resources, if they exist:
|
||||
string(REGEX REPLACE "^(.*)/[^/]+/[^/]+/[^/]+$" "\\1/Resources" resolved_resources "${resolved_item}")
|
||||
string(REGEX REPLACE "^(.*)/[^/]+/[^/]+/[^/]+$" "\\1/Resources" resolved_embedded_resources "${resolved_embedded_item}")
|
||||
if(EXISTS "${resolved_resources}")
|
||||
#message(STATUS "copying COMMAND ${CMAKE_COMMAND} -E copy_directory '${resolved_resources}' '${resolved_embedded_resources}'")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory "${resolved_resources}" "${resolved_embedded_resources}")
|
||||
endif()
|
||||
endif()
|
||||
if(UNIX AND NOT APPLE)
|
||||
file(RPATH_REMOVE FILE "${resolved_embedded_item}")
|
||||
endif(UNIX AND NOT APPLE)
|
||||
endif()
|
||||
|
||||
endfunction(copy_resolved_framework_into_bundle)
|
||||
|
||||
|
||||
function(fixup_bundle_item resolved_embedded_item exepath dirs)
|
||||
# This item's key is "ikey":
|
||||
#
|
||||
get_item_key("${resolved_embedded_item}" ikey)
|
||||
|
||||
# Ensure the item is "inside the .app bundle" -- it should not be fixed up if
|
||||
# it is not in the .app bundle... Otherwise, we'll modify files in the build
|
||||
# tree, or in other varied locations around the file system, with our call to
|
||||
# install_name_tool. Make sure that doesn't happen here:
|
||||
#
|
||||
get_dotapp_dir("${exepath}" exe_dotapp_dir)
|
||||
string(LENGTH "${exe_dotapp_dir}/" exe_dotapp_dir_length)
|
||||
string(LENGTH "${resolved_embedded_item}" resolved_embedded_item_length)
|
||||
set(path_too_short 0)
|
||||
set(is_embedded 0)
|
||||
if(${resolved_embedded_item_length} LESS ${exe_dotapp_dir_length})
|
||||
set(path_too_short 1)
|
||||
endif()
|
||||
if(NOT path_too_short)
|
||||
string(SUBSTRING "${resolved_embedded_item}" 0 ${exe_dotapp_dir_length} item_substring)
|
||||
if("${exe_dotapp_dir}/" STREQUAL "${item_substring}")
|
||||
set(is_embedded 1)
|
||||
endif()
|
||||
endif()
|
||||
if(NOT is_embedded)
|
||||
message(" exe_dotapp_dir/='${exe_dotapp_dir}/'")
|
||||
message(" item_substring='${item_substring}'")
|
||||
message(" resolved_embedded_item='${resolved_embedded_item}'")
|
||||
message("")
|
||||
message("Install or copy the item into the bundle before calling fixup_bundle.")
|
||||
message("Or maybe there's a typo or incorrect path in one of the args to fixup_bundle?")
|
||||
message("")
|
||||
message(FATAL_ERROR "cannot fixup an item that is not in the bundle...")
|
||||
endif()
|
||||
|
||||
set(prereqs "")
|
||||
get_prerequisites("${resolved_embedded_item}" prereqs 1 0 "${exepath}" "${dirs}")
|
||||
|
||||
set(changes "")
|
||||
|
||||
foreach(pr ${prereqs})
|
||||
# Each referenced item's key is "rkey" in the loop:
|
||||
#
|
||||
get_item_key("${pr}" rkey)
|
||||
|
||||
if(NOT "${${rkey}_EMBEDDED_ITEM}" STREQUAL "")
|
||||
set(changes ${changes} "-change" "${pr}" "${${rkey}_EMBEDDED_ITEM}")
|
||||
else(NOT "${${rkey}_EMBEDDED_ITEM}" STREQUAL "")
|
||||
message("warning: unexpected reference to '${pr}'")
|
||||
endif(NOT "${${rkey}_EMBEDDED_ITEM}" STREQUAL "")
|
||||
endforeach(pr)
|
||||
|
||||
if(BU_CHMOD_BUNDLE_ITEMS)
|
||||
execute_process(COMMAND chmod u+w "${resolved_embedded_item}")
|
||||
endif()
|
||||
|
||||
# Change this item's id and all of its references in one call
|
||||
# to install_name_tool:
|
||||
#
|
||||
execute_process(COMMAND install_name_tool
|
||||
${changes} -id "${${ikey}_EMBEDDED_ITEM}" "${resolved_embedded_item}"
|
||||
)
|
||||
endfunction(fixup_bundle_item)
|
||||
|
||||
|
||||
function(fixup_bundle app libs dirs)
|
||||
message(STATUS "fixup_bundle")
|
||||
message(STATUS " app='${app}'")
|
||||
message(STATUS " libs='${libs}'")
|
||||
message(STATUS " dirs='${dirs}'")
|
||||
|
||||
get_bundle_and_executable("${app}" bundle executable valid)
|
||||
if(valid)
|
||||
get_filename_component(exepath "${executable}" PATH)
|
||||
|
||||
message(STATUS "fixup_bundle: preparing...")
|
||||
get_bundle_keys("${app}" "${libs}" "${dirs}" keys)
|
||||
|
||||
message(STATUS "fixup_bundle: copying...")
|
||||
list(LENGTH keys n)
|
||||
math(EXPR n ${n}*2)
|
||||
|
||||
set(i 0)
|
||||
foreach(key ${keys})
|
||||
math(EXPR i ${i}+1)
|
||||
if(${${key}_COPYFLAG})
|
||||
message(STATUS "${i}/${n}: copying '${${key}_RESOLVED_ITEM}'")
|
||||
else(${${key}_COPYFLAG})
|
||||
message(STATUS "${i}/${n}: *NOT* copying '${${key}_RESOLVED_ITEM}'")
|
||||
endif(${${key}_COPYFLAG})
|
||||
|
||||
set(show_status 0)
|
||||
if(show_status)
|
||||
message(STATUS "key='${key}'")
|
||||
message(STATUS "item='${${key}_ITEM}'")
|
||||
message(STATUS "resolved_item='${${key}_RESOLVED_ITEM}'")
|
||||
message(STATUS "default_embedded_path='${${key}_DEFAULT_EMBEDDED_PATH}'")
|
||||
message(STATUS "embedded_item='${${key}_EMBEDDED_ITEM}'")
|
||||
message(STATUS "resolved_embedded_item='${${key}_RESOLVED_EMBEDDED_ITEM}'")
|
||||
message(STATUS "copyflag='${${key}_COPYFLAG}'")
|
||||
message(STATUS "")
|
||||
endif(show_status)
|
||||
|
||||
if(${${key}_COPYFLAG})
|
||||
set(item "${${key}_ITEM}")
|
||||
if(item MATCHES "[^/]+\\.framework/")
|
||||
copy_resolved_framework_into_bundle("${${key}_RESOLVED_ITEM}"
|
||||
"${${key}_RESOLVED_EMBEDDED_ITEM}")
|
||||
else()
|
||||
copy_resolved_item_into_bundle("${${key}_RESOLVED_ITEM}"
|
||||
"${${key}_RESOLVED_EMBEDDED_ITEM}")
|
||||
endif()
|
||||
endif(${${key}_COPYFLAG})
|
||||
endforeach(key)
|
||||
|
||||
message(STATUS "fixup_bundle: fixing...")
|
||||
foreach(key ${keys})
|
||||
math(EXPR i ${i}+1)
|
||||
if(APPLE)
|
||||
message(STATUS "${i}/${n}: fixing up '${${key}_RESOLVED_EMBEDDED_ITEM}'")
|
||||
fixup_bundle_item("${${key}_RESOLVED_EMBEDDED_ITEM}" "${exepath}" "${dirs}")
|
||||
else(APPLE)
|
||||
message(STATUS "${i}/${n}: fix-up not required on this platform '${${key}_RESOLVED_EMBEDDED_ITEM}'")
|
||||
endif(APPLE)
|
||||
endforeach(key)
|
||||
|
||||
message(STATUS "fixup_bundle: cleaning up...")
|
||||
clear_bundle_keys(keys)
|
||||
|
||||
message(STATUS "fixup_bundle: verifying...")
|
||||
verify_app("${app}")
|
||||
else(valid)
|
||||
message(SEND_ERROR "error: fixup_bundle: not a valid bundle")
|
||||
endif(valid)
|
||||
|
||||
message(STATUS "fixup_bundle: done")
|
||||
endfunction(fixup_bundle)
|
||||
|
||||
|
||||
function(copy_and_fixup_bundle src dst libs dirs)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory "${src}" "${dst}")
|
||||
fixup_bundle("${dst}" "${libs}" "${dirs}")
|
||||
endfunction(copy_and_fixup_bundle)
|
||||
|
||||
|
||||
function(verify_bundle_prerequisites bundle result_var info_var)
|
||||
set(result 1)
|
||||
set(info "")
|
||||
set(count 0)
|
||||
|
||||
get_bundle_main_executable("${bundle}" main_bundle_exe)
|
||||
|
||||
file(GLOB_RECURSE file_list "${bundle}/*")
|
||||
foreach(f ${file_list})
|
||||
is_file_executable("${f}" is_executable)
|
||||
if(is_executable)
|
||||
get_filename_component(exepath "${f}" PATH)
|
||||
math(EXPR count "${count} + 1")
|
||||
|
||||
message(STATUS "executable file ${count}: ${f}")
|
||||
|
||||
set(prereqs "")
|
||||
get_prerequisites("${f}" prereqs 1 1 "${exepath}" "")
|
||||
|
||||
# On the Mac,
|
||||
# "embedded" and "system" prerequisites are fine... anything else means
|
||||
# the bundle's prerequisites are not verified (i.e., the bundle is not
|
||||
# really "standalone")
|
||||
#
|
||||
# On Windows (and others? Linux/Unix/...?)
|
||||
# "local" and "system" prereqs are fine...
|
||||
#
|
||||
set(external_prereqs "")
|
||||
|
||||
foreach(p ${prereqs})
|
||||
set(p_type "")
|
||||
gp_file_type("${f}" "${p}" p_type)
|
||||
|
||||
if(APPLE)
|
||||
if(NOT "${p_type}" STREQUAL "embedded" AND NOT "${p_type}" STREQUAL "system")
|
||||
set(external_prereqs ${external_prereqs} "${p}")
|
||||
endif()
|
||||
else()
|
||||
if(NOT "${p_type}" STREQUAL "local" AND NOT "${p_type}" STREQUAL "system")
|
||||
set(external_prereqs ${external_prereqs} "${p}")
|
||||
endif()
|
||||
endif()
|
||||
endforeach(p)
|
||||
|
||||
if(external_prereqs)
|
||||
# Found non-system/somehow-unacceptable prerequisites:
|
||||
set(result 0)
|
||||
set(info ${info} "external prerequisites found:\nf='${f}'\nexternal_prereqs='${external_prereqs}'\n")
|
||||
endif(external_prereqs)
|
||||
endif(is_executable)
|
||||
endforeach(f)
|
||||
|
||||
if(result)
|
||||
set(info "Verified ${count} executable files in '${bundle}'")
|
||||
endif(result)
|
||||
|
||||
set(${result_var} "${result}" PARENT_SCOPE)
|
||||
set(${info_var} "${info}" PARENT_SCOPE)
|
||||
endfunction(verify_bundle_prerequisites)
|
||||
|
||||
|
||||
function(verify_bundle_symlinks bundle result_var info_var)
|
||||
set(result 1)
|
||||
set(info "")
|
||||
set(count 0)
|
||||
|
||||
# TODO: implement this function for real...
|
||||
# Right now, it is just a stub that verifies unconditionally...
|
||||
|
||||
set(${result_var} "${result}" PARENT_SCOPE)
|
||||
set(${info_var} "${info}" PARENT_SCOPE)
|
||||
endfunction(verify_bundle_symlinks)
|
||||
|
||||
|
||||
function(verify_app app)
|
||||
set(verified 0)
|
||||
set(info "")
|
||||
|
||||
get_bundle_and_executable("${app}" bundle executable valid)
|
||||
|
||||
message(STATUS "===========================================================================")
|
||||
message(STATUS "Analyzing app='${app}'")
|
||||
message(STATUS "bundle='${bundle}'")
|
||||
message(STATUS "executable='${executable}'")
|
||||
message(STATUS "valid='${valid}'")
|
||||
|
||||
# Verify that the bundle does not have any "external" prerequisites:
|
||||
#
|
||||
verify_bundle_prerequisites("${bundle}" verified info)
|
||||
message(STATUS "verified='${verified}'")
|
||||
message(STATUS "info='${info}'")
|
||||
message(STATUS "")
|
||||
|
||||
if(verified)
|
||||
# Verify that the bundle does not have any symlinks to external files:
|
||||
#
|
||||
verify_bundle_symlinks("${bundle}" verified info)
|
||||
message(STATUS "verified='${verified}'")
|
||||
message(STATUS "info='${info}'")
|
||||
message(STATUS "")
|
||||
endif(verified)
|
||||
|
||||
if(NOT verified)
|
||||
message(FATAL_ERROR "error: verify_app failed")
|
||||
endif(NOT verified)
|
||||
endfunction(verify_app)
|
||||
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMake.cmake
vendored
Normal file
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMake.cmake
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2004-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This file is used by cmake.cxx to compute the CMAKE_ROOT location.
|
||||
# Do not remove this file from cvs without updating cmake.cxx to look
|
||||
# for a different file.
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASM-ATTInformation.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASM-ATTInformation.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# support for AT&T syntax assemblers, e.g. GNU as
|
||||
|
||||
SET(ASM_DIALECT "-ATT")
|
||||
# *.S files are supposed to be preprocessed, so they should not be passed to
|
||||
# assembler but should be processed by gcc
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;asm)
|
||||
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")
|
||||
|
||||
INCLUDE(CMakeASMInformation)
|
||||
SET(ASM_DIALECT)
|
||||
12
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASMCompiler.cmake.in
vendored
Normal file
12
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASMCompiler.cmake.in
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER "@_CMAKE_ASM_COMPILER@")
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_ARG1 "@_CMAKE_ASM_COMPILER_ARG1@")
|
||||
SET(CMAKE_AR "@CMAKE_AR@")
|
||||
SET(CMAKE_RANLIB "@CMAKE_RANLIB@")
|
||||
SET(CMAKE_LINKER "@CMAKE_LINKER@")
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_LOADED 1)
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_ID "@_CMAKE_ASM_COMPILER_ID@")
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_COMPILER_ENV_VAR "@_CMAKE_ASM_COMPILER_ENV_VAR@")
|
||||
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
SET(CMAKE_ASM@ASM_DIALECT@_LINKER_PREFERENCE 0)
|
||||
|
||||
130
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASMInformation.cmake
vendored
Normal file
130
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASMInformation.cmake
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
IF(UNIX)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
|
||||
ELSE(UNIX)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .obj)
|
||||
ENDIF(UNIX)
|
||||
|
||||
SET(CMAKE_INCLUDE_FLAG_ASM${ASM_DIALECT} "-I") # -I
|
||||
SET(CMAKE_BASE_NAME)
|
||||
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" NAME_WE)
|
||||
|
||||
IF("${CMAKE_BASE_NAME}" STREQUAL "as")
|
||||
SET(CMAKE_BASE_NAME gas)
|
||||
ENDIF("${CMAKE_BASE_NAME}" STREQUAL "as")
|
||||
|
||||
# Load compiler-specific information.
|
||||
SET(_INCLUDED_FILE "")
|
||||
IF(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||
INCLUDE(Compiler/${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||
IF(NOT _INCLUDED_FILE)
|
||||
IF("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
||||
MESSAGE(FATAL_ERROR "Did not find file Compiler/${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT}")
|
||||
ENDIF("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
||||
INCLUDE(Platform/${CMAKE_BASE_NAME} OPTIONAL)
|
||||
ENDIF(NOT _INCLUDED_FILE)
|
||||
|
||||
IF(CMAKE_SYSTEM_PROCESSOR)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
IF(NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
|
||||
ENDIF(NOT _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_SYSTEM_PROCESSOR)
|
||||
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
IF(NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
|
||||
ENDIF(NOT _INCLUDED_FILE)
|
||||
|
||||
# Set default assembler file extensions:
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S;asm)
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
|
||||
|
||||
|
||||
# Support for CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT and friends:
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT "$ENV{ASM${ASM_DIALECT}FLAGS} ${CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT}")
|
||||
# avoid just having a space as the initial value for the cache
|
||||
IF(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT STREQUAL " ")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT)
|
||||
ENDIF(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT STREQUAL " ")
|
||||
SET (CMAKE_ASM${ASM_DIALECT}_FLAGS "${CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT}" CACHE STRING
|
||||
"Flags used by the assembler during all build types.")
|
||||
|
||||
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
# default build type is none
|
||||
IF(NOT CMAKE_NO_BUILD_TYPE)
|
||||
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
||||
"Choose the type of build, options are: None, Debug Release RelWithDebInfo MinSizeRel.")
|
||||
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
||||
SET (CMAKE_ASM${ASM_DIALECT}_FLAGS_DEBUG "${CMAKE_ASM${ASM_DIALECT}_FLAGS_DEBUG_INIT}" CACHE STRING
|
||||
"Flags used by the assembler during debug builds.")
|
||||
SET (CMAKE_ASM${ASM_DIALECT}_FLAGS_MINSIZEREL "${CMAKE_ASM${ASM_DIALECT}_FLAGS_MINSIZEREL_INIT}" CACHE STRING
|
||||
"Flags used by the assembler during release minsize builds.")
|
||||
SET (CMAKE_ASM${ASM_DIALECT}_FLAGS_RELEASE "${CMAKE_ASM${ASM_DIALECT}_FLAGS_RELEASE_INIT}" CACHE STRING
|
||||
"Flags used by the assembler during release builds.")
|
||||
SET (CMAKE_ASM${ASM_DIALECT}_FLAGS_RELWITHDEBINFO "${CMAKE_ASM${ASM_DIALECT}_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
|
||||
"Flags used by the assembler during Release with Debug Info builds.")
|
||||
ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_ASM${ASM_DIALECT}_FLAGS
|
||||
CMAKE_ASM${ASM_DIALECT}_FLAGS_DEBUG
|
||||
CMAKE_ASM${ASM_DIALECT}_FLAGS_MINSIZEREL
|
||||
CMAKE_ASM${ASM_DIALECT}_FLAGS_RELEASE
|
||||
CMAKE_ASM${ASM_DIALECT}_FLAGS_RELWITHDEBINFO
|
||||
)
|
||||
|
||||
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
||||
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
||||
"<CMAKE_RANLIB> <TARGET> ")
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
|
||||
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
|
||||
"<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> <CMAKE_ASM${ASM_DIALECT}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG)
|
||||
SET(CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_ASM${ASM_DIALECT}_FLAG})
|
||||
ENDIF()
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG_SEP)
|
||||
SET(CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_ASM${ASM_DIALECT}_FLAG_SEP})
|
||||
ENDIF()
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RPATH_LINK_ASM${ASM_DIALECT}_FLAG)
|
||||
SET(CMAKE_EXECUTABLE_RPATH_LINK_ASM${ASM_DIALECT}_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_ASM${ASM_DIALECT}_FLAG})
|
||||
ENDIF()
|
||||
|
||||
# to be done
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY)
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_LIBRARY)
|
||||
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_MODULE)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_MODULE)
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_SHARED_MODULE)
|
||||
|
||||
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_INFOMATION_LOADED 1)
|
||||
|
||||
24
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASM_MASMInformation.cmake
vendored
Normal file
24
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASM_MASMInformation.cmake
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2008-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# support for the MS assembler, masm and masm64
|
||||
|
||||
SET(ASM_DIALECT "_MASM")
|
||||
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS asm)
|
||||
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> /c /Fo <OBJECT> <SOURCE>")
|
||||
|
||||
INCLUDE(CMakeASMInformation)
|
||||
SET(ASM_DIALECT)
|
||||
46
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASM_NASMInformation.cmake
vendored
Normal file
46
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeASM_NASMInformation.cmake
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# support for the nasm assembler
|
||||
|
||||
set(CMAKE_ASM_NASM_SOURCE_FILE_EXTENSIONS nasm asm)
|
||||
|
||||
if(NOT CMAKE_ASM_NASM_OBJECT_FORMAT)
|
||||
if(WIN32)
|
||||
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
|
||||
SET(CMAKE_ASM_NASM_OBJECT_FORMAT win64)
|
||||
else()
|
||||
SET(CMAKE_ASM_NASM_OBJECT_FORMAT win32)
|
||||
endif()
|
||||
elseif(APPLE)
|
||||
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
|
||||
SET(CMAKE_ASM_NASM_OBJECT_FORMAT macho64)
|
||||
else()
|
||||
SET(CMAKE_ASM_NASM_OBJECT_FORMAT macho)
|
||||
endif()
|
||||
else()
|
||||
if(CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
|
||||
SET(CMAKE_ASM_NASM_OBJECT_FORMAT elf64)
|
||||
else()
|
||||
SET(CMAKE_ASM_NASM_OBJECT_FORMAT elf)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CMAKE_ASM_NASM_COMPILE_OBJECT "<CMAKE_ASM_NASM_COMPILER> <FLAGS> -f ${CMAKE_ASM_NASM_OBJECT_FORMAT} -o <OBJECT> <SOURCE>")
|
||||
|
||||
# Load the generic ASMInformation file:
|
||||
set(ASM_DIALECT "_NASM")
|
||||
include(CMakeASMInformation)
|
||||
set(ASM_DIALECT)
|
||||
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeAddNewLanguage.txt
vendored
Normal file
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeAddNewLanguage.txt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
CMakeDetermine(LANG)Compiler.cmake -> this should find the compiler for LANG and configure CMake(LANG)Compiler.cmake.in
|
||||
|
||||
CMake(LANG)Compiler.cmake.in -> used by CMakeDetermine(LANG)Compiler.cmake
|
||||
This file is used to store compiler information and is copied down into try
|
||||
compile directories so that try compiles do not need to re-determine and test the LANG
|
||||
|
||||
CMakeTest(LANG)Compiler.cmake -> test the compiler and set:
|
||||
SET(CMAKE_(LANG)_COMPILER_WORKS 1 CACHE INTERNAL "")
|
||||
|
||||
CMake(LANG)Information.cmake -> set up rule variables for LANG :
|
||||
CMAKE_(LANG)_CREATE_SHARED_LIBRARY
|
||||
CMAKE_(LANG)_CREATE_SHARED_MODULE
|
||||
CMAKE_(LANG)_CREATE_STATIC_LIBRARY
|
||||
CMAKE_(LANG)_COMPILE_OBJECT
|
||||
CMAKE_(LANG)_LINK_EXECUTABLE
|
||||
|
||||
|
||||
100
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBackwardCompatibilityC.cmake
vendored
Normal file
100
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBackwardCompatibilityC.cmake
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Nothing here yet
|
||||
IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
||||
INCLUDE(CMakeVS7BackwardCompatibility)
|
||||
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
|
||||
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
|
||||
IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
|
||||
INCLUDE(CMakeVS6BackwardCompatibility)
|
||||
SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
|
||||
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
|
||||
|
||||
IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||
# Old CMake versions did not support OS X universal binaries anyway,
|
||||
# so just get through this with at least some size for the types.
|
||||
LIST(LENGTH CMAKE_OSX_ARCHITECTURES NUM_ARCHS)
|
||||
IF(${NUM_ARCHS} GREATER 1)
|
||||
IF(NOT DEFINED CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
||||
MESSAGE(WARNING "This module does not work with OS X universal binaries.")
|
||||
SET(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES 1)
|
||||
LIST(GET CMAKE_OSX_ARCHITECTURES 0 CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
INCLUDE (CheckTypeSize)
|
||||
CHECK_TYPE_SIZE(int CMAKE_SIZEOF_INT)
|
||||
CHECK_TYPE_SIZE(long CMAKE_SIZEOF_LONG)
|
||||
CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
|
||||
CHECK_TYPE_SIZE(char CMAKE_SIZEOF_CHAR)
|
||||
CHECK_TYPE_SIZE(short CMAKE_SIZEOF_SHORT)
|
||||
CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT)
|
||||
CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE)
|
||||
|
||||
INCLUDE (CheckIncludeFile)
|
||||
CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H)
|
||||
CHECK_INCLUDE_FILE("unistd.h" CMAKE_HAVE_UNISTD_H)
|
||||
CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)
|
||||
|
||||
INCLUDE (CheckIncludeFiles)
|
||||
CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SYS_PRCTL_H)
|
||||
|
||||
INCLUDE (TestBigEndian)
|
||||
TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
|
||||
INCLUDE (FindX11)
|
||||
|
||||
IF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
|
||||
SET (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.")
|
||||
ELSE("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
|
||||
SET (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING
|
||||
"X11 extra flags.")
|
||||
ENDIF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
|
||||
SET (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING
|
||||
"Libraries and options used in X11 programs.")
|
||||
SET (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.")
|
||||
|
||||
INCLUDE (FindThreads)
|
||||
|
||||
SET (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING
|
||||
"Thread library used.")
|
||||
|
||||
SET (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
|
||||
"Use the pthreads library.")
|
||||
|
||||
SET (CMAKE_USE_WIN32_THREADS "${CMAKE_USE_WIN32_THREADS_INIT}" CACHE BOOL
|
||||
"Use the win32 thread library.")
|
||||
|
||||
SET (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
|
||||
"Use HP pthreads.")
|
||||
|
||||
SET (CMAKE_USE_SPROC ${CMAKE_USE_SPROC_INIT} CACHE BOOL
|
||||
"Use sproc libs.")
|
||||
|
||||
IF(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
||||
SET(CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
||||
SET(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
|
||||
ENDIF()
|
||||
ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
CMAKE_HP_PTHREADS
|
||||
CMAKE_THREAD_LIBS
|
||||
CMAKE_USE_PTHREADS
|
||||
CMAKE_USE_SPROC
|
||||
CMAKE_USE_WIN32_THREADS
|
||||
CMAKE_X_CFLAGS
|
||||
CMAKE_X_LIBS
|
||||
)
|
||||
|
||||
54
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBackwardCompatibilityCXX.cmake
vendored
Normal file
54
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBackwardCompatibilityCXX.cmake
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
# - define a bunch of backwards compatibility variables
|
||||
# CMAKE_ANSI_CXXFLAGS - flag for ansi c++
|
||||
# CMAKE_HAS_ANSI_STRING_STREAM - has <strstream>
|
||||
# INCLUDE(TestForANSIStreamHeaders)
|
||||
# INCLUDE(CheckIncludeFileCXX)
|
||||
# INCLUDE(TestForSTDNamespace)
|
||||
# INCLUDE(TestForANSIForScope)
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||
# check for some ANSI flags in the CXX compiler if it is not gnu
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
INCLUDE(TestCXXAcceptsFlag)
|
||||
SET(CMAKE_TRY_ANSI_CXX_FLAGS "")
|
||||
IF(CMAKE_SYSTEM MATCHES "IRIX.*")
|
||||
SET(CMAKE_TRY_ANSI_CXX_FLAGS "-LANG:std")
|
||||
ENDIF(CMAKE_SYSTEM MATCHES "IRIX.*")
|
||||
IF(CMAKE_SYSTEM MATCHES "OSF.*")
|
||||
SET(CMAKE_TRY_ANSI_CXX_FLAGS "-std strict_ansi -nopure_cname")
|
||||
ENDIF(CMAKE_SYSTEM MATCHES "OSF.*")
|
||||
# if CMAKE_TRY_ANSI_CXX_FLAGS has something in it, see
|
||||
# if the compiler accepts it
|
||||
IF( CMAKE_TRY_ANSI_CXX_FLAGS MATCHES ".+")
|
||||
CHECK_CXX_ACCEPTS_FLAG(${CMAKE_TRY_ANSI_CXX_FLAGS} CMAKE_CXX_ACCEPTS_FLAGS)
|
||||
# if the compiler liked the flag then set CMAKE_ANSI_CXXFLAGS
|
||||
# to the flag
|
||||
IF(CMAKE_CXX_ACCEPTS_FLAGS)
|
||||
SET(CMAKE_ANSI_CXXFLAGS ${CMAKE_TRY_ANSI_CXX_FLAGS} CACHE INTERNAL
|
||||
"What flags are required by the c++ compiler to make it ansi." )
|
||||
ENDIF(CMAKE_CXX_ACCEPTS_FLAGS)
|
||||
ENDIF( CMAKE_TRY_ANSI_CXX_FLAGS MATCHES ".+")
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_FLAGS_SAVE ${CMAKE_CXX_FLAGS})
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")
|
||||
INCLUDE(TestForANSIStreamHeaders)
|
||||
INCLUDE(CheckIncludeFileCXX)
|
||||
INCLUDE(TestForSTDNamespace)
|
||||
INCLUDE(TestForANSIForScope)
|
||||
INCLUDE(TestForSSTREAM)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_SAVE}")
|
||||
ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
|
||||
|
||||
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBorlandFindMake.cmake
vendored
Normal file
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBorlandFindMake.cmake
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
SET (CMAKE_MAKE_PROGRAM "make" CACHE STRING
|
||||
"Program used to build from makefiles.")
|
||||
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
|
||||
13
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBuildSettings.cmake.in
vendored
Normal file
13
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeBuildSettings.cmake.in
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
# The command CMAKE_EXPORT_BUILD_SETTINGS(...) was used by
|
||||
# @PROJECT_NAME@ to generate this file. As of CMake 2.8 the
|
||||
# functionality of this command has been dropped as it was deemed
|
||||
# harmful (confusing users by changing their compiler).
|
||||
|
||||
# CMake 2.6 and below do not support loading their equivalent of this
|
||||
# file if it was produced by a newer version of CMake. CMake 2.8 and
|
||||
# above simply do not load this file. Therefore we simply error out.
|
||||
message(FATAL_ERROR
|
||||
"This @PROJECT_NAME@ was built by CMake @CMAKE_VERSION@, but this is CMake "
|
||||
"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}. "
|
||||
"Please upgrade CMake to a more recent version.")
|
||||
49
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in
vendored
Normal file
49
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCCompiler.cmake.in
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
SET(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
|
||||
SET(CMAKE_C_COMPILER_ARG1 "@CMAKE_C_COMPILER_ARG1@")
|
||||
SET(CMAKE_C_COMPILER_ID "@CMAKE_C_COMPILER_ID@")
|
||||
SET(CMAKE_C_PLATFORM_ID "@CMAKE_C_PLATFORM_ID@")
|
||||
@SET_MSVC_C_ARCHITECTURE_ID@
|
||||
SET(CMAKE_AR "@CMAKE_AR@")
|
||||
SET(CMAKE_RANLIB "@CMAKE_RANLIB@")
|
||||
SET(CMAKE_LINKER "@CMAKE_LINKER@")
|
||||
SET(CMAKE_COMPILER_IS_GNUCC @CMAKE_COMPILER_IS_GNUCC@)
|
||||
SET(CMAKE_C_COMPILER_LOADED 1)
|
||||
SET(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
|
||||
SET(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
|
||||
IF(CMAKE_COMPILER_IS_CYGWIN)
|
||||
SET(CYGWIN 1)
|
||||
SET(UNIX 1)
|
||||
ENDIF(CMAKE_COMPILER_IS_CYGWIN)
|
||||
|
||||
SET(CMAKE_C_COMPILER_ENV_VAR "CC")
|
||||
|
||||
IF(CMAKE_COMPILER_IS_MINGW)
|
||||
SET(MINGW 1)
|
||||
ENDIF(CMAKE_COMPILER_IS_MINGW)
|
||||
SET(CMAKE_C_COMPILER_ID_RUN 1)
|
||||
SET(CMAKE_C_SOURCE_FILE_EXTENSIONS c)
|
||||
SET(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
SET(CMAKE_C_LINKER_PREFERENCE 10)
|
||||
|
||||
# Save compiler ABI information.
|
||||
SET(CMAKE_C_SIZEOF_DATA_PTR "@CMAKE_C_SIZEOF_DATA_PTR@")
|
||||
SET(CMAKE_C_COMPILER_ABI "@CMAKE_C_COMPILER_ABI@")
|
||||
SET(CMAKE_C_LIBRARY_ARCHITECTURE "@CMAKE_C_LIBRARY_ARCHITECTURE@")
|
||||
|
||||
IF(CMAKE_C_SIZEOF_DATA_PTR)
|
||||
SET(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
|
||||
ENDIF(CMAKE_C_SIZEOF_DATA_PTR)
|
||||
|
||||
IF(CMAKE_C_COMPILER_ABI)
|
||||
SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
|
||||
ENDIF(CMAKE_C_COMPILER_ABI)
|
||||
|
||||
IF(CMAKE_C_LIBRARY_ARCHITECTURE)
|
||||
SET(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_C_LIBRARY_ARCHITECTURE@")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_C_HAS_ISYSROOT "@CMAKE_C_HAS_ISYSROOT@")
|
||||
@CMAKE_C_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
|
||||
|
||||
SET(CMAKE_C_IMPLICIT_LINK_LIBRARIES "@CMAKE_C_IMPLICIT_LINK_LIBRARIES@")
|
||||
SET(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "@CMAKE_C_IMPLICIT_LINK_DIRECTORIES@")
|
||||
28
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCCompilerABI.c
vendored
Normal file
28
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCCompilerABI.c
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifdef __cplusplus
|
||||
# error "A C++ compiler has been selected for C."
|
||||
#endif
|
||||
|
||||
#ifdef __CLASSIC_C__
|
||||
# define const
|
||||
#endif
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#include "CMakeCompilerABI.h"
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __CLASSIC_C__
|
||||
int main(argc, argv) int argc; char *argv[];
|
||||
#else
|
||||
int main(int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
int require = 0;
|
||||
require += info_sizeof_dptr[argc];
|
||||
#if defined(ABI_ID)
|
||||
require += info_abi[argc];
|
||||
#endif
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
115
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCCompilerId.c.in
vendored
Normal file
115
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCCompilerId.c.in
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
#ifdef __cplusplus
|
||||
# error "A C++ compiler has been selected for C."
|
||||
#endif
|
||||
|
||||
#if defined(__18CXX)
|
||||
# define ID_VOID_MAIN
|
||||
#endif
|
||||
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "Watcom"
|
||||
|
||||
#elif defined(__SUNPRO_C)
|
||||
# define COMPILER_ID "SunPro"
|
||||
|
||||
#elif defined(__HP_cc)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#elif defined(__DECC)
|
||||
# define COMPILER_ID "Compaq"
|
||||
|
||||
#elif defined(__IBMC__)
|
||||
# if defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
# elif __IBMC__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
# else
|
||||
# define COMPILER_ID "VisualAge"
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
|
||||
#elif defined(__PATHSCALE__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI_DSP"
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
# define COMPILER_ID "GNU"
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
|
||||
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
|
||||
SHARC (21000) DSPs */
|
||||
# define COMPILER_ID "ADSP"
|
||||
|
||||
/* IAR Systems compiler for embedded systems.
|
||||
http://www.iar.com
|
||||
Not supported yet by CMake
|
||||
#elif defined(__IAR_SYSTEMS_ICC__)
|
||||
# define COMPILER_ID "IAR" */
|
||||
|
||||
/* sdcc, the small devices C compiler for embedded systems,
|
||||
http://sdcc.sourceforge.net */
|
||||
#elif defined(SDCC)
|
||||
# define COMPILER_ID "SDCC"
|
||||
|
||||
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
|
||||
# define COMPILER_ID "MIPSpro"
|
||||
|
||||
/* This compiler is either not known or is too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__sgi)
|
||||
# define COMPILER_ID "MIPSpro"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
|
||||
@CMAKE_C_COMPILER_ID_PLATFORM_CONTENT@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#ifdef ID_VOID_MAIN
|
||||
void main() {}
|
||||
#else
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
require += info_arch[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
#endif
|
||||
213
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCInformation.cmake
vendored
Normal file
213
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCInformation.cmake
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2004-2011 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This file sets the basic flags for the C language in CMake.
|
||||
# It also loads the available platform file for the system-compiler
|
||||
# if it exists.
|
||||
# It also loads a system - compiler - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
# some compilers use different extensions (e.g. sdcc uses .rel)
|
||||
# so set the extension here first so it can be overridden by the compiler specific file
|
||||
IF(UNIX)
|
||||
SET(CMAKE_C_OUTPUT_EXTENSION .o)
|
||||
ELSE(UNIX)
|
||||
SET(CMAKE_C_OUTPUT_EXTENSION .obj)
|
||||
ENDIF(UNIX)
|
||||
|
||||
SET(_INCLUDED_FILE 0)
|
||||
|
||||
# Load compiler-specific information.
|
||||
IF(CMAKE_C_COMPILER_ID)
|
||||
INCLUDE(Compiler/${CMAKE_C_COMPILER_ID}-C OPTIONAL)
|
||||
ENDIF(CMAKE_C_COMPILER_ID)
|
||||
|
||||
SET(CMAKE_BASE_NAME)
|
||||
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_C_COMPILER} NAME_WE)
|
||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||
SET(CMAKE_BASE_NAME gcc)
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
IF(CMAKE_SYSTEM_PROCESSOR)
|
||||
IF(CMAKE_C_COMPILER_ID)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_C_COMPILER_ID}-C-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_C_COMPILER_ID)
|
||||
IF (NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
|
||||
ENDIF (NOT _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_SYSTEM_PROCESSOR)
|
||||
|
||||
|
||||
# load the system- and compiler specific files
|
||||
IF(CMAKE_C_COMPILER_ID)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_C_COMPILER_ID}-C
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_C_COMPILER_ID)
|
||||
IF (NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF (NOT _INCLUDED_FILE)
|
||||
# We specify the compiler information in the system file for some
|
||||
# platforms, but this language may not have been enabled when the file
|
||||
# was first included. Include it again to get the language info.
|
||||
# Remove this when all compiler info is removed from system files.
|
||||
IF (NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME} OPTIONAL)
|
||||
ENDIF (NOT _INCLUDED_FILE)
|
||||
|
||||
|
||||
# This should be included before the _INIT variables are
|
||||
# used to initialize the cache. Since the rule variables
|
||||
# have if blocks on them, users can still define them here.
|
||||
# But, it should still be after the platform file so changes can
|
||||
# be made to those values.
|
||||
|
||||
IF(CMAKE_USER_MAKE_RULES_OVERRIDE)
|
||||
# Save the full path of the file so try_compile can use it.
|
||||
INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE} RESULT_VARIABLE _override)
|
||||
SET(CMAKE_USER_MAKE_RULES_OVERRIDE "${_override}")
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_USER_MAKE_RULES_OVERRIDE_C)
|
||||
# Save the full path of the file so try_compile can use it.
|
||||
INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE_C} RESULT_VARIABLE _override)
|
||||
SET(CMAKE_USER_MAKE_RULES_OVERRIDE_C "${_override}")
|
||||
ENDIF()
|
||||
|
||||
|
||||
# for most systems a module is the same as a shared library
|
||||
# so unless the variable CMAKE_MODULE_EXISTS is set just
|
||||
# copy the values from the LIBRARY variables
|
||||
IF(NOT CMAKE_MODULE_EXISTS)
|
||||
SET(CMAKE_SHARED_MODULE_C_FLAGS ${CMAKE_SHARED_LIBRARY_C_FLAGS})
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_MODULE_EXISTS)
|
||||
|
||||
SET(CMAKE_C_FLAGS_INIT "$ENV{CFLAGS} ${CMAKE_C_FLAGS_INIT}")
|
||||
# avoid just having a space as the initial value for the cache
|
||||
IF(CMAKE_C_FLAGS_INIT STREQUAL " ")
|
||||
SET(CMAKE_C_FLAGS_INIT)
|
||||
ENDIF(CMAKE_C_FLAGS_INIT STREQUAL " ")
|
||||
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during all build types.")
|
||||
|
||||
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
# default build type is none
|
||||
IF(NOT CMAKE_NO_BUILD_TYPE)
|
||||
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
||||
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
||||
SET (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during debug builds.")
|
||||
SET (CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during release minsize builds.")
|
||||
SET (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).")
|
||||
SET (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during Release with Debug Info builds.")
|
||||
ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
|
||||
IF(CMAKE_C_STANDARD_LIBRARIES_INIT)
|
||||
SET(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES_INIT}"
|
||||
CACHE STRING "Libraries linked by defalut with all C applications.")
|
||||
MARK_AS_ADVANCED(CMAKE_C_STANDARD_LIBRARIES)
|
||||
ENDIF(CMAKE_C_STANDARD_LIBRARIES_INIT)
|
||||
|
||||
INCLUDE(CMakeCommonLanguageInclude)
|
||||
|
||||
# now define the following rule variables
|
||||
|
||||
# CMAKE_C_CREATE_SHARED_LIBRARY
|
||||
# CMAKE_C_CREATE_SHARED_MODULE
|
||||
# CMAKE_C_COMPILE_OBJECT
|
||||
# CMAKE_C_LINK_EXECUTABLE
|
||||
|
||||
# variables supplied by the generator at use time
|
||||
# <TARGET>
|
||||
# <TARGET_BASE> the target without the suffix
|
||||
# <OBJECTS>
|
||||
# <OBJECT>
|
||||
# <LINK_LIBRARIES>
|
||||
# <FLAGS>
|
||||
# <LINK_FLAGS>
|
||||
|
||||
# C compiler information
|
||||
# <CMAKE_C_COMPILER>
|
||||
# <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS>
|
||||
# <CMAKE_SHARED_MODULE_CREATE_C_FLAGS>
|
||||
# <CMAKE_C_LINK_FLAGS>
|
||||
|
||||
# Static library tools
|
||||
# <CMAKE_AR>
|
||||
# <CMAKE_RANLIB>
|
||||
|
||||
|
||||
# create a C shared library
|
||||
IF(NOT CMAKE_C_CREATE_SHARED_LIBRARY)
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
ENDIF(NOT CMAKE_C_CREATE_SHARED_LIBRARY)
|
||||
|
||||
# create a C shared module just copy the shared library rule
|
||||
IF(NOT CMAKE_C_CREATE_SHARED_MODULE)
|
||||
SET(CMAKE_C_CREATE_SHARED_MODULE ${CMAKE_C_CREATE_SHARED_LIBRARY})
|
||||
ENDIF(NOT CMAKE_C_CREATE_SHARED_MODULE)
|
||||
|
||||
# Create a static archive incrementally for large object file counts.
|
||||
# If CMAKE_C_CREATE_STATIC_LIBRARY is set it will override these.
|
||||
IF(NOT DEFINED CMAKE_C_ARCHIVE_CREATE)
|
||||
SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||
ENDIF()
|
||||
IF(NOT DEFINED CMAKE_C_ARCHIVE_APPEND)
|
||||
SET(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||
ENDIF()
|
||||
IF(NOT DEFINED CMAKE_C_ARCHIVE_FINISH)
|
||||
SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> <TARGET>")
|
||||
ENDIF()
|
||||
|
||||
# compile a C file into an object file
|
||||
IF(NOT CMAKE_C_COMPILE_OBJECT)
|
||||
SET(CMAKE_C_COMPILE_OBJECT
|
||||
"<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||
ENDIF(NOT CMAKE_C_COMPILE_OBJECT)
|
||||
|
||||
IF(NOT CMAKE_C_LINK_EXECUTABLE)
|
||||
SET(CMAKE_C_LINK_EXECUTABLE
|
||||
"<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
ENDIF(NOT CMAKE_C_LINK_EXECUTABLE)
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RUNTIME_C_FLAG)
|
||||
SET(CMAKE_EXECUTABLE_RUNTIME_C_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_RUNTIME_C_FLAG)
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RUNTIME_C_FLAG_SEP)
|
||||
SET(CMAKE_EXECUTABLE_RUNTIME_C_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP})
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_RUNTIME_C_FLAG_SEP)
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RPATH_LINK_C_FLAG)
|
||||
SET(CMAKE_EXECUTABLE_RPATH_LINK_C_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG})
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_RPATH_LINK_C_FLAG)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
CMAKE_C_FLAGS
|
||||
CMAKE_C_FLAGS_DEBUG
|
||||
CMAKE_C_FLAGS_MINSIZEREL
|
||||
CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
)
|
||||
SET(CMAKE_C_INFORMATION_LOADED 1)
|
||||
|
||||
|
||||
50
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXCompiler.cmake.in
vendored
Normal file
50
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXCompiler.cmake.in
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
SET(CMAKE_CXX_COMPILER "@CMAKE_CXX_COMPILER@")
|
||||
SET(CMAKE_CXX_COMPILER_ARG1 "@CMAKE_CXX_COMPILER_ARG1@")
|
||||
SET(CMAKE_CXX_COMPILER_ID "@CMAKE_CXX_COMPILER_ID@")
|
||||
SET(CMAKE_CXX_PLATFORM_ID "@CMAKE_CXX_PLATFORM_ID@")
|
||||
@SET_MSVC_CXX_ARCHITECTURE_ID@
|
||||
SET(CMAKE_AR "@CMAKE_AR@")
|
||||
SET(CMAKE_RANLIB "@CMAKE_RANLIB@")
|
||||
SET(CMAKE_LINKER "@CMAKE_LINKER@")
|
||||
SET(CMAKE_COMPILER_IS_GNUCXX @CMAKE_COMPILER_IS_GNUCXX@)
|
||||
SET(CMAKE_CXX_COMPILER_LOADED 1)
|
||||
SET(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
|
||||
SET(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
|
||||
IF(CMAKE_COMPILER_IS_CYGWIN)
|
||||
SET(CYGWIN 1)
|
||||
SET(UNIX 1)
|
||||
ENDIF(CMAKE_COMPILER_IS_CYGWIN)
|
||||
|
||||
SET(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
||||
|
||||
IF(CMAKE_COMPILER_IS_MINGW)
|
||||
SET(MINGW 1)
|
||||
ENDIF(CMAKE_COMPILER_IS_MINGW)
|
||||
SET(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
SET(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
|
||||
SET(CMAKE_CXX_LINKER_PREFERENCE 30)
|
||||
SET(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
|
||||
|
||||
# Save compiler ABI information.
|
||||
SET(CMAKE_CXX_SIZEOF_DATA_PTR "@CMAKE_CXX_SIZEOF_DATA_PTR@")
|
||||
SET(CMAKE_CXX_COMPILER_ABI "@CMAKE_CXX_COMPILER_ABI@")
|
||||
SET(CMAKE_CXX_LIBRARY_ARCHITECTURE "@CMAKE_CXX_LIBRARY_ARCHITECTURE@")
|
||||
|
||||
IF(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||
SET(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
|
||||
ENDIF(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||
|
||||
IF(CMAKE_CXX_COMPILER_ABI)
|
||||
SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
|
||||
ENDIF(CMAKE_CXX_COMPILER_ABI)
|
||||
|
||||
IF(CMAKE_CXX_LIBRARY_ARCHITECTURE)
|
||||
SET(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_CXX_LIBRARY_ARCHITECTURE@")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_CXX_HAS_ISYSROOT "@CMAKE_CXX_HAS_ISYSROOT@")
|
||||
@CMAKE_CXX_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
|
||||
|
||||
SET(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "@CMAKE_CXX_IMPLICIT_LINK_LIBRARIES@")
|
||||
SET(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES@")
|
||||
20
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp
vendored
Normal file
20
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXCompilerABI.cpp
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for C++."
|
||||
#endif
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
#include "CMakeCompilerABI.h"
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_sizeof_dptr[argc];
|
||||
#if defined(ABI_ID)
|
||||
require += info_abi[argc];
|
||||
#endif
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
101
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXCompilerId.cpp.in
vendored
Normal file
101
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXCompilerId.cpp.in
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
/* This source file must have a .cpp extension so that all C++ compilers
|
||||
recognize the extension without flags. Borland does not know .cxx for
|
||||
example. */
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for C++."
|
||||
#endif
|
||||
|
||||
#if defined(__COMO__)
|
||||
# define COMPILER_ID "Comeau"
|
||||
|
||||
#elif defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "Watcom"
|
||||
|
||||
#elif defined(__SUNPRO_CC)
|
||||
# define COMPILER_ID "SunPro"
|
||||
|
||||
#elif defined(__HP_aCC)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
# define COMPILER_ID "Compaq"
|
||||
|
||||
#elif defined(__IBMCPP__)
|
||||
# if defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
# elif __IBMCPP__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
# else
|
||||
# define COMPILER_ID "VisualAge"
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
|
||||
#elif defined(__PATHSCALE__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI_DSP"
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
# define COMPILER_ID "GNU"
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
|
||||
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
/* Analog Devices C++ compiler for Blackfin, TigerSHARC and
|
||||
SHARC (21000) DSPs */
|
||||
# define COMPILER_ID "ADSP"
|
||||
|
||||
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
|
||||
# define COMPILER_ID "MIPSpro"
|
||||
|
||||
/* This compiler is either not known or is too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__sgi)
|
||||
# define COMPILER_ID "MIPSpro"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
|
||||
@CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
279
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXInformation.cmake
vendored
Normal file
279
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCXXInformation.cmake
vendored
Normal file
@@ -0,0 +1,279 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2004-2011 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This file sets the basic flags for the C++ language in CMake.
|
||||
# It also loads the available platform file for the system-compiler
|
||||
# if it exists.
|
||||
# It also loads a system - compiler - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
# some compilers use different extensions (e.g. sdcc uses .rel)
|
||||
# so set the extension here first so it can be overridden by the compiler specific file
|
||||
IF(UNIX)
|
||||
SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
|
||||
ELSE(UNIX)
|
||||
SET(CMAKE_CXX_OUTPUT_EXTENSION .obj)
|
||||
ENDIF(UNIX)
|
||||
|
||||
SET(_INCLUDED_FILE 0)
|
||||
|
||||
# Load compiler-specific information.
|
||||
IF(CMAKE_CXX_COMPILER_ID)
|
||||
INCLUDE(Compiler/${CMAKE_CXX_COMPILER_ID}-CXX OPTIONAL)
|
||||
ENDIF(CMAKE_CXX_COMPILER_ID)
|
||||
|
||||
SET(CMAKE_BASE_NAME)
|
||||
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_CXX_COMPILER} NAME_WE)
|
||||
# since the gnu compiler has several names force g++
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_BASE_NAME g++)
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
IF(CMAKE_SYSTEM_PROCESSOR)
|
||||
IF(CMAKE_CXX_COMPILER_ID)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}-CXX-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_CXX_COMPILER_ID)
|
||||
IF (NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
|
||||
ENDIF (NOT _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_SYSTEM_PROCESSOR)
|
||||
|
||||
# load the system- and compiler specific files
|
||||
IF(CMAKE_CXX_COMPILER_ID)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_ID}-CXX OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF(CMAKE_CXX_COMPILER_ID)
|
||||
IF (NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL
|
||||
RESULT_VARIABLE _INCLUDED_FILE)
|
||||
ENDIF (NOT _INCLUDED_FILE)
|
||||
# We specify the compiler information in the system file for some
|
||||
# platforms, but this language may not have been enabled when the file
|
||||
# was first included. Include it again to get the language info.
|
||||
# Remove this when all compiler info is removed from system files.
|
||||
IF (NOT _INCLUDED_FILE)
|
||||
INCLUDE(Platform/${CMAKE_SYSTEM_NAME} OPTIONAL)
|
||||
ENDIF (NOT _INCLUDED_FILE)
|
||||
|
||||
|
||||
# This should be included before the _INIT variables are
|
||||
# used to initialize the cache. Since the rule variables
|
||||
# have if blocks on them, users can still define them here.
|
||||
# But, it should still be after the platform file so changes can
|
||||
# be made to those values.
|
||||
|
||||
IF(CMAKE_USER_MAKE_RULES_OVERRIDE)
|
||||
# Save the full path of the file so try_compile can use it.
|
||||
INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE} RESULT_VARIABLE _override)
|
||||
SET(CMAKE_USER_MAKE_RULES_OVERRIDE "${_override}")
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX)
|
||||
# Save the full path of the file so try_compile can use it.
|
||||
INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE_CXX} RESULT_VARIABLE _override)
|
||||
SET(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX "${_override}")
|
||||
ENDIF()
|
||||
|
||||
|
||||
# for most systems a module is the same as a shared library
|
||||
# so unless the variable CMAKE_MODULE_EXISTS is set just
|
||||
# copy the values from the LIBRARY variables
|
||||
IF(NOT CMAKE_MODULE_EXISTS)
|
||||
SET(CMAKE_SHARED_MODULE_CXX_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
|
||||
ENDIF(NOT CMAKE_MODULE_EXISTS)
|
||||
# Create a set of shared library variable specific to C++
|
||||
# For 90% of the systems, these are the same flags as the C versions
|
||||
# so if these are not set just copy the flags from the c version
|
||||
IF(NOT CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS)
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS)
|
||||
|
||||
IF(NOT CMAKE_SHARED_LIBRARY_CXX_FLAGS)
|
||||
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS ${CMAKE_SHARED_LIBRARY_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_SHARED_LIBRARY_CXX_FLAGS)
|
||||
|
||||
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS ${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS})
|
||||
ENDIF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
||||
|
||||
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG)
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
|
||||
ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG)
|
||||
|
||||
IF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP)
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP})
|
||||
ENDIF(NOT CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP)
|
||||
|
||||
IF(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG)
|
||||
SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG})
|
||||
ENDIF(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG)
|
||||
|
||||
IF(NOT DEFINED CMAKE_EXE_EXPORTS_CXX_FLAG)
|
||||
SET(CMAKE_EXE_EXPORTS_CXX_FLAG ${CMAKE_EXE_EXPORTS_C_FLAG})
|
||||
ENDIF()
|
||||
|
||||
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG)
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG ${CMAKE_SHARED_LIBRARY_SONAME_C_FLAG})
|
||||
ENDIF()
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG)
|
||||
SET(CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG})
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG)
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG_SEP)
|
||||
SET(CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP})
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG_SEP)
|
||||
|
||||
IF(NOT CMAKE_EXECUTABLE_RPATH_LINK_CXX_FLAG)
|
||||
SET(CMAKE_EXECUTABLE_RPATH_LINK_CXX_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG})
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_RPATH_LINK_CXX_FLAG)
|
||||
|
||||
IF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_WITH_RUNTIME_PATH)
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_CXX_WITH_RUNTIME_PATH ${CMAKE_SHARED_LIBRARY_LINK_C_WITH_RUNTIME_PATH})
|
||||
ENDIF(NOT DEFINED CMAKE_SHARED_LIBRARY_LINK_CXX_WITH_RUNTIME_PATH)
|
||||
|
||||
IF(NOT CMAKE_INCLUDE_FLAG_CXX)
|
||||
SET(CMAKE_INCLUDE_FLAG_CXX ${CMAKE_INCLUDE_FLAG_C})
|
||||
ENDIF(NOT CMAKE_INCLUDE_FLAG_CXX)
|
||||
|
||||
IF(NOT CMAKE_INCLUDE_FLAG_SEP_CXX)
|
||||
SET(CMAKE_INCLUDE_FLAG_SEP_CXX ${CMAKE_INCLUDE_FLAG_SEP_C})
|
||||
ENDIF(NOT CMAKE_INCLUDE_FLAG_SEP_CXX)
|
||||
|
||||
# repeat for modules
|
||||
IF(NOT CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS)
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS ${CMAKE_SHARED_MODULE_CREATE_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS)
|
||||
|
||||
IF(NOT CMAKE_SHARED_MODULE_CXX_FLAGS)
|
||||
SET(CMAKE_SHARED_MODULE_CXX_FLAGS ${CMAKE_SHARED_MODULE_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_SHARED_MODULE_CXX_FLAGS)
|
||||
|
||||
# Initialize CXX link type selection flags from C versions.
|
||||
FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
|
||||
IF(NOT CMAKE_${type}_LINK_STATIC_CXX_FLAGS)
|
||||
SET(CMAKE_${type}_LINK_STATIC_CXX_FLAGS
|
||||
${CMAKE_${type}_LINK_STATIC_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_${type}_LINK_STATIC_CXX_FLAGS)
|
||||
IF(NOT CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS)
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS
|
||||
${CMAKE_${type}_LINK_DYNAMIC_C_FLAGS})
|
||||
ENDIF(NOT CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS)
|
||||
ENDFOREACH(type)
|
||||
|
||||
# add the flags to the cache based
|
||||
# on the initial values computed in the platform/*.cmake files
|
||||
# use _INIT variables so that this only happens the first time
|
||||
# and you can set these flags in the cmake cache
|
||||
SET(CMAKE_CXX_FLAGS_INIT "$ENV{CXXFLAGS} ${CMAKE_CXX_FLAGS_INIT}")
|
||||
# avoid just having a space as the initial value for the cache
|
||||
IF(CMAKE_CXX_FLAGS_INIT STREQUAL " ")
|
||||
SET(CMAKE_CXX_FLAGS_INIT)
|
||||
ENDIF(CMAKE_CXX_FLAGS_INIT STREQUAL " ")
|
||||
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during all build types.")
|
||||
|
||||
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during debug builds.")
|
||||
SET (CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during release minsize builds.")
|
||||
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files).")
|
||||
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT}" CACHE STRING
|
||||
"Flags used by the compiler during Release with Debug Info builds.")
|
||||
|
||||
ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
|
||||
IF(CMAKE_CXX_STANDARD_LIBRARIES_INIT)
|
||||
SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES_INIT}"
|
||||
CACHE STRING "Libraries linked by defalut with all C++ applications.")
|
||||
MARK_AS_ADVANCED(CMAKE_CXX_STANDARD_LIBRARIES)
|
||||
ENDIF(CMAKE_CXX_STANDARD_LIBRARIES_INIT)
|
||||
|
||||
INCLUDE(CMakeCommonLanguageInclude)
|
||||
|
||||
# now define the following rules:
|
||||
# CMAKE_CXX_CREATE_SHARED_LIBRARY
|
||||
# CMAKE_CXX_CREATE_SHARED_MODULE
|
||||
# CMAKE_CXX_COMPILE_OBJECT
|
||||
# CMAKE_CXX_LINK_EXECUTABLE
|
||||
|
||||
# variables supplied by the generator at use time
|
||||
# <TARGET>
|
||||
# <TARGET_BASE> the target without the suffix
|
||||
# <OBJECTS>
|
||||
# <OBJECT>
|
||||
# <LINK_LIBRARIES>
|
||||
# <FLAGS>
|
||||
# <LINK_FLAGS>
|
||||
|
||||
# CXX compiler information
|
||||
# <CMAKE_CXX_COMPILER>
|
||||
# <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS>
|
||||
# <CMAKE_CXX_SHARED_MODULE_CREATE_FLAGS>
|
||||
# <CMAKE_CXX_LINK_FLAGS>
|
||||
|
||||
# Static library tools
|
||||
# <CMAKE_AR>
|
||||
# <CMAKE_RANLIB>
|
||||
|
||||
|
||||
# create a shared C++ library
|
||||
IF(NOT CMAKE_CXX_CREATE_SHARED_LIBRARY)
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
ENDIF(NOT CMAKE_CXX_CREATE_SHARED_LIBRARY)
|
||||
|
||||
# create a c++ shared module copy the shared library rule by default
|
||||
IF(NOT CMAKE_CXX_CREATE_SHARED_MODULE)
|
||||
SET(CMAKE_CXX_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
|
||||
ENDIF(NOT CMAKE_CXX_CREATE_SHARED_MODULE)
|
||||
|
||||
|
||||
# Create a static archive incrementally for large object file counts.
|
||||
# If CMAKE_CXX_CREATE_STATIC_LIBRARY is set it will override these.
|
||||
IF(NOT DEFINED CMAKE_CXX_ARCHIVE_CREATE)
|
||||
SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||
ENDIF()
|
||||
IF(NOT DEFINED CMAKE_CXX_ARCHIVE_APPEND)
|
||||
SET(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> r <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||
ENDIF()
|
||||
IF(NOT DEFINED CMAKE_CXX_ARCHIVE_FINISH)
|
||||
SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> <TARGET>")
|
||||
ENDIF()
|
||||
|
||||
# compile a C++ file into an object file
|
||||
IF(NOT CMAKE_CXX_COMPILE_OBJECT)
|
||||
SET(CMAKE_CXX_COMPILE_OBJECT
|
||||
"<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||
ENDIF(NOT CMAKE_CXX_COMPILE_OBJECT)
|
||||
|
||||
IF(NOT CMAKE_CXX_LINK_EXECUTABLE)
|
||||
SET(CMAKE_CXX_LINK_EXECUTABLE
|
||||
"<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
ENDIF(NOT CMAKE_CXX_LINK_EXECUTABLE)
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
CMAKE_BUILD_TOOL
|
||||
CMAKE_VERBOSE_MAKEFILE
|
||||
CMAKE_CXX_FLAGS
|
||||
CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL
|
||||
CMAKE_CXX_FLAGS_DEBUG)
|
||||
|
||||
SET(CMAKE_CXX_INFORMATION_LOADED 1)
|
||||
|
||||
107
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCommonLanguageInclude.cmake
vendored
Normal file
107
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCommonLanguageInclude.cmake
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2004-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# this file has flags that are shared across languages and sets
|
||||
# cache values that can be initialized in the platform-compiler.cmake file
|
||||
# it may be included by more than one language.
|
||||
|
||||
SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
||||
CACHE STRING "Flags used by the linker.")
|
||||
|
||||
|
||||
IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
# default build type is none
|
||||
IF(NOT CMAKE_NO_BUILD_TYPE)
|
||||
SET (CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE_INIT} CACHE STRING
|
||||
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||
ENDIF(NOT CMAKE_NO_BUILD_TYPE)
|
||||
|
||||
SET (CMAKE_EXE_LINKER_FLAGS_DEBUG ${CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
||||
"Flags used by the linker during debug builds.")
|
||||
|
||||
SET (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL ${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT} CACHE STRING
|
||||
"Flags used by the linker during release minsize builds.")
|
||||
|
||||
SET (CMAKE_EXE_LINKER_FLAGS_RELEASE ${CMAKE_EXE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
||||
"Flags used by the linker during release builds.")
|
||||
|
||||
SET (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
||||
"Flags used by the linker during Release with Debug Info builds.")
|
||||
|
||||
SET (CMAKE_SHARED_LINKER_FLAGS_DEBUG ${CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
||||
"Flags used by the linker during debug builds.")
|
||||
|
||||
SET (CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL ${CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL_INIT}
|
||||
CACHE STRING
|
||||
"Flags used by the linker during release minsize builds.")
|
||||
|
||||
SET (CMAKE_SHARED_LINKER_FLAGS_RELEASE ${CMAKE_SHARED_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
||||
"Flags used by the linker during release builds.")
|
||||
|
||||
SET (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
||||
"Flags used by the linker during Release with Debug Info builds.")
|
||||
|
||||
SET (CMAKE_MODULE_LINKER_FLAGS_DEBUG ${CMAKE_MODULE_LINKER_FLAGS_DEBUG_INIT} CACHE STRING
|
||||
"Flags used by the linker during debug builds.")
|
||||
|
||||
SET (CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL ${CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL_INIT}
|
||||
CACHE STRING
|
||||
"Flags used by the linker during release minsize builds.")
|
||||
|
||||
SET (CMAKE_MODULE_LINKER_FLAGS_RELEASE ${CMAKE_MODULE_LINKER_FLAGS_RELEASE_INIT} CACHE STRING
|
||||
"Flags used by the linker during release builds.")
|
||||
|
||||
SET (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT} CACHE STRING
|
||||
"Flags used by the linker during Release with Debug Info builds.")
|
||||
|
||||
ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
|
||||
# shared linker flags
|
||||
SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
||||
CACHE STRING "Flags used by the linker during the creation of dll's.")
|
||||
|
||||
# module linker flags
|
||||
SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS_INIT} $ENV{LDFLAGS}"
|
||||
CACHE STRING "Flags used by the linker during the creation of modules.")
|
||||
|
||||
SET(CMAKE_BUILD_TOOL ${CMAKE_MAKE_PROGRAM} CACHE INTERNAL
|
||||
"What is the target build tool cmake is generating for.")
|
||||
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
CMAKE_BUILD_TOOL
|
||||
CMAKE_VERBOSE_MAKEFILE
|
||||
|
||||
CMAKE_EXE_LINKER_FLAGS
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
|
||||
CMAKE_SHARED_LINKER_FLAGS
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
|
||||
CMAKE_MODULE_LINKER_FLAGS
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
|
||||
)
|
||||
|
||||
36
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCompilerABI.h
vendored
Normal file
36
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeCompilerABI.h
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/* Size of a pointer-to-data in bytes. */
|
||||
#define SIZEOF_DPTR (sizeof(void*))
|
||||
const char info_sizeof_dptr[] = {
|
||||
'I', 'N', 'F', 'O', ':', 's', 'i', 'z', 'e', 'o', 'f', '_', 'd', 'p', 't', 'r', '[',
|
||||
('0' + ((SIZEOF_DPTR / 10)%10)),
|
||||
('0' + (SIZEOF_DPTR % 10)),
|
||||
']','\0'};
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/* Application Binary Interface. */
|
||||
#if defined(__sgi) && defined(_ABIO32)
|
||||
# define ABI_ID "ELF O32"
|
||||
#elif defined(__sgi) && defined(_ABIN32)
|
||||
# define ABI_ID "ELF N32"
|
||||
#elif defined(__sgi) && defined(_ABI64)
|
||||
# define ABI_ID "ELF 64"
|
||||
|
||||
/* Check for (some) ARM ABIs.
|
||||
* See e.g. http://wiki.debian.org/ArmEabiPort for some information on this. */
|
||||
#elif defined(__GNU__) && defined(__ELF__) && defined(__ARM_EABI__)
|
||||
# define ABI_ID "ELF ARMEABI"
|
||||
#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEB__)
|
||||
# define ABI_ID "ELF ARM"
|
||||
#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__)
|
||||
# define ABI_ID "ELF ARM"
|
||||
|
||||
#elif defined(__ELF__)
|
||||
# define ABI_ID "ELF"
|
||||
#endif
|
||||
|
||||
#if defined(ABI_ID)
|
||||
static char const info_abi[] = "INFO:abi[" ABI_ID "]";
|
||||
#endif
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeConfigurableFile.in
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeConfigurableFile.in
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
@CMAKE_CONFIGURABLE_FILE_CONTENT@
|
||||
|
||||
51
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDependentOption.cmake
vendored
Normal file
51
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDependentOption.cmake
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# - Macro to provide an option dependent on other options.
|
||||
# This macro presents an option to the user only if a set of other
|
||||
# conditions are true. When the option is not presented a default
|
||||
# value is used, but any value set by the user is preserved for when
|
||||
# the option is presented again.
|
||||
# Example invocation:
|
||||
# CMAKE_DEPENDENT_OPTION(USE_FOO "Use Foo" ON
|
||||
# "USE_BAR;NOT USE_ZOT" OFF)
|
||||
# If USE_BAR is true and USE_ZOT is false, this provides an option called
|
||||
# USE_FOO that defaults to ON. Otherwise, it sets USE_FOO to OFF. If
|
||||
# the status of USE_BAR or USE_ZOT ever changes, any value for the
|
||||
# USE_FOO option is saved so that when the option is re-enabled it
|
||||
# retains its old value.
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2006-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
MACRO(CMAKE_DEPENDENT_OPTION option doc default depends force)
|
||||
IF(${option}_ISSET MATCHES "^${option}_ISSET$")
|
||||
SET(${option}_AVAILABLE 1)
|
||||
FOREACH(d ${depends})
|
||||
STRING(REGEX REPLACE " +" ";" CMAKE_DEPENDENT_OPTION_DEP "${d}")
|
||||
IF(${CMAKE_DEPENDENT_OPTION_DEP})
|
||||
ELSE(${CMAKE_DEPENDENT_OPTION_DEP})
|
||||
SET(${option}_AVAILABLE 0)
|
||||
ENDIF(${CMAKE_DEPENDENT_OPTION_DEP})
|
||||
ENDFOREACH(d)
|
||||
IF(${option}_AVAILABLE)
|
||||
OPTION(${option} "${doc}" "${default}")
|
||||
SET(${option} "${${option}}" CACHE BOOL "${doc}" FORCE)
|
||||
ELSE(${option}_AVAILABLE)
|
||||
IF(${option} MATCHES "^${option}$")
|
||||
ELSE(${option} MATCHES "^${option}$")
|
||||
SET(${option} "${${option}}" CACHE INTERNAL "${doc}")
|
||||
ENDIF(${option} MATCHES "^${option}$")
|
||||
SET(${option} ${force})
|
||||
ENDIF(${option}_AVAILABLE)
|
||||
ELSE(${option}_ISSET MATCHES "^${option}_ISSET$")
|
||||
SET(${option} "${${option}_ISSET}")
|
||||
ENDIF(${option}_ISSET MATCHES "^${option}_ISSET$")
|
||||
ENDMACRO(CMAKE_DEPENDENT_OPTION)
|
||||
20
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASM-ATTCompiler.cmake
vendored
Normal file
20
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASM-ATTCompiler.cmake
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for ASM using AT&T syntax, e.g. GNU as
|
||||
|
||||
SET(ASM_DIALECT "-ATT")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ${_CMAKE_TOOLCHAIN_PREFIX}gas ${_CMAKE_TOOLCHAIN_PREFIX}as)
|
||||
INCLUDE(CMakeDetermineASMCompiler)
|
||||
SET(ASM_DIALECT)
|
||||
178
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASMCompiler.cmake
vendored
Normal file
178
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASMCompiler.cmake
vendored
Normal file
@@ -0,0 +1,178 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for ASM programs
|
||||
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
# prefer the environment variable ASM
|
||||
IF($ENV{ASM${ASM_DIALECT}} MATCHES ".+")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT "$ENV{ASM${ASM_DIALECT}}")
|
||||
ENDIF($ENV{ASM${ASM_DIALECT}} MATCHES ".+")
|
||||
|
||||
# finally list compilers to try
|
||||
IF("ASM${ASM_DIALECT}" STREQUAL "ASM") # the generic assembler support
|
||||
|
||||
IF(CMAKE_ASM_COMPILER_INIT)
|
||||
SET(CMAKE_ASM_COMPILER_LIST ${CMAKE_ASM_COMPILER_INIT})
|
||||
ELSE(CMAKE_ASM_COMPILER_INIT)
|
||||
|
||||
IF(CMAKE_C_COMPILER)
|
||||
SET(CMAKE_ASM_COMPILER "${CMAKE_C_COMPILER}" CACHE FILEPATH "The ASM compiler")
|
||||
SET(CMAKE_ASM_COMPILER_ID "${CMAKE_C_COMPILER_ID}")
|
||||
ELSEIF(CMAKE_CXX_COMPILER)
|
||||
SET(CMAKE_ASM_COMPILER "${CMAKE_CXX_COMPILER}" CACHE FILEPATH "The ASM compiler")
|
||||
SET(CMAKE_ASM_COMPILER_ID "${CMAKE_CXX_COMPILER_ID}")
|
||||
ELSE(CMAKE_CXX_COMPILER)
|
||||
# List all default C and CXX compilers
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}gcc ${_CMAKE_TOOLCHAIN_PREFIX}cc cl bcc xlc
|
||||
${_CMAKE_TOOLCHAIN_PREFIX}c++ ${_CMAKE_TOOLCHAIN_PREFIX}g++ CC aCC cl bcc xlC)
|
||||
ENDIF(CMAKE_C_COMPILER)
|
||||
|
||||
ENDIF(CMAKE_ASM_COMPILER_INIT)
|
||||
|
||||
|
||||
ELSE("ASM${ASM_DIALECT}" STREQUAL "ASM") # some specific assembler "dialect"
|
||||
|
||||
IF(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST ${CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT})
|
||||
ELSE(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT)
|
||||
MESSAGE(FATAL_ERROR "CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT must be preset !")
|
||||
ENDIF(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT)
|
||||
|
||||
ENDIF("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
||||
|
||||
|
||||
# Find the compiler.
|
||||
IF (_CMAKE_USER_CXX_COMPILER_PATH OR _CMAKE_USER_C_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_ASM${ASM_DIALECT}_COMPILER NAMES ${CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST} PATHS ${_CMAKE_USER_C_COMPILER_PATH} ${_CMAKE_USER_CXX_COMPILER_PATH} DOC "Assembler" NO_DEFAULT_PATH)
|
||||
ENDIF (_CMAKE_USER_CXX_COMPILER_PATH OR _CMAKE_USER_C_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_ASM${ASM_DIALECT}_COMPILER NAMES ${CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST} PATHS ${_CMAKE_TOOLCHAIN_LOCATION} DOC "Assembler")
|
||||
|
||||
ELSE(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
|
||||
# we only get here if CMAKE_ASM${ASM_DIALECT}_COMPILER was specified using -D or a pre-made CMakeCache.txt
|
||||
# (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE
|
||||
#
|
||||
# if a compiler was specified by the user but without path,
|
||||
# now try to find it with the full path
|
||||
# if it is found, force it into the cache,
|
||||
# if not, don't overwrite the setting (which was given by the user) with "NOTFOUND"
|
||||
GET_FILENAME_COMPONENT(_CMAKE_USER_ASM${ASM_DIALECT}_COMPILER_PATH "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" PATH)
|
||||
IF(NOT _CMAKE_USER_ASM${ASM_DIALECT}_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_ASM${ASM_DIALECT}_COMPILER_WITH_PATH NAMES ${CMAKE_ASM${ASM_DIALECT}_COMPILER})
|
||||
MARK_AS_ADVANCED(CMAKE_ASM${ASM_DIALECT}_COMPILER_WITH_PATH)
|
||||
IF(CMAKE_ASM${ASM_DIALECT}_COMPILER_WITH_PATH)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER ${CMAKE_ASM${ASM_DIALECT}_COMPILER_WITH_PATH} CACHE FILEPATH "Assembler" FORCE)
|
||||
ENDIF(CMAKE_ASM${ASM_DIALECT}_COMPILER_WITH_PATH)
|
||||
ENDIF(NOT _CMAKE_USER_ASM${ASM_DIALECT}_COMPILER_PATH)
|
||||
ENDIF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
MARK_AS_ADVANCED(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
|
||||
IF (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
||||
GET_FILENAME_COMPONENT(_CMAKE_TOOLCHAIN_LOCATION "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" PATH)
|
||||
ENDIF (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
||||
|
||||
|
||||
IF(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||
|
||||
# Table of per-vendor compiler id flags with expected output.
|
||||
LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS GNU )
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_GNU "--version")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_GNU "(GNU assembler)|(GCC)|(Free Software Foundation)")
|
||||
|
||||
LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS HP )
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_HP "-V")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_HP "HP C")
|
||||
|
||||
LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS Intel )
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_Intel "--version")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_Intel "(ICC)")
|
||||
|
||||
LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS SunPro )
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_SunPro "-V")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_SunPro "Sun C")
|
||||
|
||||
LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS XL )
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_XL "-qversion")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_XL "XL C")
|
||||
|
||||
LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI_DSP )
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI_DSP "-h")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TI_DSP "Texas Instruments")
|
||||
|
||||
INCLUDE(CMakeDetermineCompilerId)
|
||||
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT})
|
||||
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||
MESSAGE(STATUS "The ASM${ASM_DIALECT} compiler identification is ${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}")
|
||||
ELSE(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||
MESSAGE(STATUS "The ASM${ASM_DIALECT} compiler identification is unknown")
|
||||
ENDIF(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||
|
||||
|
||||
|
||||
# If we have a gas/as cross compiler, they have usually some prefix, like
|
||||
# e.g. powerpc-linux-gas, arm-elf-gas or i586-mingw32msvc-gas , optionally
|
||||
# with a 3-component version number at the end
|
||||
# The other tools of the toolchain usually have the same prefix
|
||||
# NAME_WE cannot be used since then this test will fail for names lile
|
||||
# "arm-unknown-nto-qnx6.3.0-gas.exe", where BASENAME would be
|
||||
# "arm-unknown-nto-qnx6" instead of the correct "arm-unknown-nto-qnx6.3.0-"
|
||||
IF (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
GET_FILENAME_COMPONENT(COMPILER_BASENAME "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" NAME)
|
||||
IF (COMPILER_BASENAME MATCHES "^(.+-)g?as(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF (COMPILER_BASENAME MATCHES "^(.+-)g?as(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
ENDIF (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
|
||||
# Now try the C compiler regexp:
|
||||
IF (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
IF (COMPILER_BASENAME MATCHES "^(.+-)g?cc(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF (COMPILER_BASENAME MATCHES "^(.+-)g?cc(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
ENDIF (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
|
||||
# Finally try the CXX compiler regexp:
|
||||
IF (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
IF (COMPILER_BASENAME MATCHES "^(.+-)[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF (COMPILER_BASENAME MATCHES "^(.+-)[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
ENDIF (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
|
||||
|
||||
INCLUDE(CMakeFindBinUtils)
|
||||
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ENV_VAR "ASM${ASM_DIALECT}")
|
||||
|
||||
IF(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
MESSAGE(STATUS "Found assembler: ${CMAKE_ASM${ASM_DIALECT}_COMPILER}")
|
||||
ELSE(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
MESSAGE(STATUS "Didn't find assembler")
|
||||
ENDIF(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
||||
|
||||
|
||||
SET(_CMAKE_ASM_COMPILER "${CMAKE_ASM${ASM_DIALECT}_COMPILER}")
|
||||
SET(_CMAKE_ASM_COMPILER_ID "${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}")
|
||||
SET(_CMAKE_ASM_COMPILER_ARG1 "${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARG1}")
|
||||
SET(_CMAKE_ASM_COMPILER_ENV_VAR "${CMAKE_ASM${ASM_DIALECT}_COMPILER_ENV_VAR}")
|
||||
|
||||
# configure variables set in this file for fast reload later on
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeASMCompiler.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeASM${ASM_DIALECT}Compiler.cmake IMMEDIATE @ONLY)
|
||||
|
||||
SET(_CMAKE_ASM_COMPILER)
|
||||
SET(_CMAKE_ASM_COMPILER_ARG1)
|
||||
SET(_CMAKE_ASM_COMPILER_ENV_VAR)
|
||||
27
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASM_MASMCompiler.cmake
vendored
Normal file
27
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASM_MASMCompiler.cmake
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2008-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Find the MS assembler (masm or masm64)
|
||||
|
||||
SET(ASM_DIALECT "_MASM")
|
||||
|
||||
# if we are using the 64bit cl compiler, assume we also want the 64bit assembler
|
||||
IF(CMAKE_CL_64)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml64)
|
||||
ELSE(CMAKE_CL_64)
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml)
|
||||
ENDIF(CMAKE_CL_64)
|
||||
|
||||
INCLUDE(CMakeDetermineASMCompiler)
|
||||
SET(ASM_DIALECT)
|
||||
27
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASM_NASMCompiler.cmake
vendored
Normal file
27
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineASM_NASMCompiler.cmake
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Find the nasm assembler. yasm (http://www.tortall.net/projects/yasm/) is nasm compatible
|
||||
|
||||
SET(CMAKE_ASM_NASM_COMPILER_INIT nasm yasm)
|
||||
|
||||
IF(NOT CMAKE_ASM_NASM_COMPILER)
|
||||
FIND_PROGRAM(CMAKE_ASM_NASM_COMPILER nasm
|
||||
"$ENV{ProgramFiles}/NASM")
|
||||
ENDIF(NOT CMAKE_ASM_NASM_COMPILER)
|
||||
|
||||
# Load the generic DetermineASM compiler file with the DIALECT set properly:
|
||||
SET(ASM_DIALECT "_NASM")
|
||||
INCLUDE(CMakeDetermineASMCompiler)
|
||||
SET(ASM_DIALECT)
|
||||
184
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake
vendored
Normal file
184
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake
vendored
Normal file
@@ -0,0 +1,184 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for C programs
|
||||
# NOTE, a generator may set CMAKE_C_COMPILER before
|
||||
# loading this file to force a compiler.
|
||||
# use environment variable CC first if defined by user, next use
|
||||
# the cmake variable CMAKE_GENERATOR_CC which can be defined by a generator
|
||||
# as a default compiler
|
||||
# If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
|
||||
# as prefix for the tools (e.g. arm-elf-gcc, arm-elf-ar etc.). This works
|
||||
# currently with the GNU crosscompilers.
|
||||
#
|
||||
# Sets the following variables:
|
||||
# CMAKE_C_COMPILER
|
||||
# CMAKE_AR
|
||||
# CMAKE_RANLIB
|
||||
# CMAKE_COMPILER_IS_GNUCC
|
||||
#
|
||||
# If not already set before, it also sets
|
||||
# _CMAKE_TOOLCHAIN_PREFIX
|
||||
|
||||
IF(NOT CMAKE_C_COMPILER)
|
||||
SET(CMAKE_CXX_COMPILER_INIT NOTFOUND)
|
||||
|
||||
# prefer the environment variable CC
|
||||
IF($ENV{CC} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_C_COMPILER_INIT $ENV{CC} PROGRAM PROGRAM_ARGS CMAKE_C_FLAGS_ENV_INIT)
|
||||
IF(CMAKE_C_FLAGS_ENV_INIT)
|
||||
SET(CMAKE_C_COMPILER_ARG1 "${CMAKE_C_FLAGS_ENV_INIT}" CACHE STRING "First argument to C compiler")
|
||||
ENDIF(CMAKE_C_FLAGS_ENV_INIT)
|
||||
IF(NOT EXISTS ${CMAKE_C_COMPILER_INIT})
|
||||
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable CC:\n$ENV{CC}.")
|
||||
ENDIF(NOT EXISTS ${CMAKE_C_COMPILER_INIT})
|
||||
ENDIF($ENV{CC} MATCHES ".+")
|
||||
|
||||
# next try prefer the compiler specified by the generator
|
||||
IF(CMAKE_GENERATOR_CC)
|
||||
IF(NOT CMAKE_C_COMPILER_INIT)
|
||||
SET(CMAKE_C_COMPILER_INIT ${CMAKE_GENERATOR_CC})
|
||||
ENDIF(NOT CMAKE_C_COMPILER_INIT)
|
||||
ENDIF(CMAKE_GENERATOR_CC)
|
||||
|
||||
# finally list compilers to try
|
||||
IF(CMAKE_C_COMPILER_INIT)
|
||||
SET(CMAKE_C_COMPILER_LIST ${CMAKE_C_COMPILER_INIT})
|
||||
ELSE(CMAKE_C_COMPILER_INIT)
|
||||
SET(CMAKE_C_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}gcc ${_CMAKE_TOOLCHAIN_PREFIX}cc cl bcc xlc)
|
||||
ENDIF(CMAKE_C_COMPILER_INIT)
|
||||
|
||||
# Find the compiler.
|
||||
IF (_CMAKE_USER_CXX_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_C_COMPILER NAMES ${CMAKE_C_COMPILER_LIST} PATHS ${_CMAKE_USER_CXX_COMPILER_PATH} DOC "C compiler" NO_DEFAULT_PATH)
|
||||
ENDIF (_CMAKE_USER_CXX_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_C_COMPILER NAMES ${CMAKE_C_COMPILER_LIST} DOC "C compiler")
|
||||
|
||||
IF(CMAKE_C_COMPILER_INIT AND NOT CMAKE_C_COMPILER)
|
||||
SET(CMAKE_C_COMPILER "${CMAKE_C_COMPILER_INIT}" CACHE FILEPATH "C compiler" FORCE)
|
||||
ENDIF(CMAKE_C_COMPILER_INIT AND NOT CMAKE_C_COMPILER)
|
||||
ELSE(NOT CMAKE_C_COMPILER)
|
||||
|
||||
# we only get here if CMAKE_C_COMPILER was specified using -D or a pre-made CMakeCache.txt
|
||||
# (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE
|
||||
# if CMAKE_C_COMPILER is a list of length 2, use the first item as
|
||||
# CMAKE_C_COMPILER and the 2nd one as CMAKE_C_COMPILER_ARG1
|
||||
|
||||
LIST(LENGTH CMAKE_C_COMPILER _CMAKE_C_COMPILER_LIST_LENGTH)
|
||||
IF("${_CMAKE_C_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||
LIST(GET CMAKE_C_COMPILER 1 CMAKE_C_COMPILER_ARG1)
|
||||
LIST(GET CMAKE_C_COMPILER 0 CMAKE_C_COMPILER)
|
||||
ENDIF("${_CMAKE_C_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||
|
||||
# if a compiler was specified by the user but without path,
|
||||
# now try to find it with the full path
|
||||
# if it is found, force it into the cache,
|
||||
# if not, don't overwrite the setting (which was given by the user) with "NOTFOUND"
|
||||
# if the C compiler already had a path, reuse it for searching the CXX compiler
|
||||
GET_FILENAME_COMPONENT(_CMAKE_USER_C_COMPILER_PATH "${CMAKE_C_COMPILER}" PATH)
|
||||
IF(NOT _CMAKE_USER_C_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_C_COMPILER_WITH_PATH NAMES ${CMAKE_C_COMPILER})
|
||||
MARK_AS_ADVANCED(CMAKE_C_COMPILER_WITH_PATH)
|
||||
IF(CMAKE_C_COMPILER_WITH_PATH)
|
||||
SET(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_WITH_PATH} CACHE STRING "C compiler" FORCE)
|
||||
ENDIF(CMAKE_C_COMPILER_WITH_PATH)
|
||||
ENDIF(NOT _CMAKE_USER_C_COMPILER_PATH)
|
||||
ENDIF(NOT CMAKE_C_COMPILER)
|
||||
MARK_AS_ADVANCED(CMAKE_C_COMPILER)
|
||||
|
||||
IF (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
||||
GET_FILENAME_COMPONENT(_CMAKE_TOOLCHAIN_LOCATION "${CMAKE_C_COMPILER}" PATH)
|
||||
ENDIF (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
||||
|
||||
# Build a small source file to identify the compiler.
|
||||
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||
SET(CMAKE_C_COMPILER_ID_RUN 1)
|
||||
SET(CMAKE_C_PLATFORM_ID "Windows")
|
||||
|
||||
# TODO: Set the compiler id. It is probably MSVC but
|
||||
# the user may be using an integrated Intel compiler.
|
||||
# SET(CMAKE_C_COMPILER_ID "MSVC")
|
||||
ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||
|
||||
IF(NOT CMAKE_C_COMPILER_ID_RUN)
|
||||
SET(CMAKE_C_COMPILER_ID_RUN 1)
|
||||
|
||||
# Each entry in this list is a set of extra flags to try
|
||||
# adding to the compile line to see if it helps produce
|
||||
# a valid identification file.
|
||||
SET(CMAKE_C_COMPILER_ID_TEST_FLAGS
|
||||
# Try compiling to an object file only.
|
||||
"-c"
|
||||
|
||||
# Try enabling ANSI mode on HP.
|
||||
"-Aa"
|
||||
)
|
||||
|
||||
# Try to identify the compiler.
|
||||
SET(CMAKE_C_COMPILER_ID)
|
||||
FILE(READ ${CMAKE_ROOT}/Modules/CMakePlatformId.h.in
|
||||
CMAKE_C_COMPILER_ID_PLATFORM_CONTENT)
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||
CMAKE_DETERMINE_COMPILER_ID(C CFLAGS CMakeCCompilerId.c)
|
||||
|
||||
# Set old compiler and platform id variables.
|
||||
IF("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
|
||||
SET(CMAKE_COMPILER_IS_GNUCC 1)
|
||||
ENDIF("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
|
||||
IF("${CMAKE_C_PLATFORM_ID}" MATCHES "MinGW")
|
||||
SET(CMAKE_COMPILER_IS_MINGW 1)
|
||||
ELSEIF("${CMAKE_C_PLATFORM_ID}" MATCHES "Cygwin")
|
||||
SET(CMAKE_COMPILER_IS_CYGWIN 1)
|
||||
ENDIF("${CMAKE_C_PLATFORM_ID}" MATCHES "MinGW")
|
||||
ENDIF(NOT CMAKE_C_COMPILER_ID_RUN)
|
||||
|
||||
# If we have a gcc cross compiler, they have usually some prefix, like
|
||||
# e.g. powerpc-linux-gcc, arm-elf-gcc or i586-mingw32msvc-gcc, optionally
|
||||
# with a 3-component version number at the end (e.g. arm-eabi-gcc-4.5.2).
|
||||
# The other tools of the toolchain usually have the same prefix
|
||||
# NAME_WE cannot be used since then this test will fail for names lile
|
||||
# "arm-unknown-nto-qnx6.3.0-gcc.exe", where BASENAME would be
|
||||
# "arm-unknown-nto-qnx6" instead of the correct "arm-unknown-nto-qnx6.3.0-"
|
||||
IF (CMAKE_CROSSCOMPILING
|
||||
AND "${CMAKE_C_COMPILER_ID}" MATCHES "GNU"
|
||||
AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
GET_FILENAME_COMPONENT(COMPILER_BASENAME "${CMAKE_C_COMPILER}" NAME)
|
||||
IF (COMPILER_BASENAME MATCHES "^(.+-)g?cc(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF (COMPILER_BASENAME MATCHES "^(.+-)g?cc(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
|
||||
# if "llvm-" is part of the prefix, remove it, since llvm doesn't have its own binutils
|
||||
# but uses the regular ar, objcopy, etc. (instead of llvm-objcopy etc.)
|
||||
IF ("${_CMAKE_TOOLCHAIN_PREFIX}" MATCHES "(.+-)?llvm-$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF ("${_CMAKE_TOOLCHAIN_PREFIX}" MATCHES "(.+-)?llvm-$")
|
||||
|
||||
ENDIF (CMAKE_CROSSCOMPILING
|
||||
AND "${CMAKE_C_COMPILER_ID}" MATCHES "GNU"
|
||||
AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
|
||||
|
||||
|
||||
|
||||
INCLUDE(CMakeFindBinUtils)
|
||||
IF(MSVC_C_ARCHITECTURE_ID)
|
||||
SET(SET_MSVC_C_ARCHITECTURE_ID
|
||||
"SET(MSVC_C_ARCHITECTURE_ID ${MSVC_C_ARCHITECTURE_ID})")
|
||||
ENDIF(MSVC_C_ARCHITECTURE_ID)
|
||||
# configure variables set in this file for fast reload later on
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeCCompiler.cmake.in
|
||||
"${CMAKE_PLATFORM_ROOT_BIN}/CMakeCCompiler.cmake"
|
||||
@ONLY IMMEDIATE # IMMEDIATE must be here for compatibility mode <= 2.0
|
||||
)
|
||||
SET(CMAKE_C_COMPILER_ENV_VAR "CC")
|
||||
190
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake
vendored
Normal file
190
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake
vendored
Normal file
@@ -0,0 +1,190 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for C++ programs
|
||||
# NOTE, a generator may set CMAKE_CXX_COMPILER before
|
||||
# loading this file to force a compiler.
|
||||
# use environment variable CXX first if defined by user, next use
|
||||
# the cmake variable CMAKE_GENERATOR_CXX which can be defined by a generator
|
||||
# as a default compiler
|
||||
# If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
|
||||
# as prefix for the tools (e.g. arm-elf-g++, arm-elf-ar etc.)
|
||||
#
|
||||
# Sets the following variables:
|
||||
# CMAKE_CXX_COMPILER
|
||||
# CMAKE_COMPILER_IS_GNUCXX
|
||||
# CMAKE_AR
|
||||
# CMAKE_RANLIB
|
||||
#
|
||||
# If not already set before, it also sets
|
||||
# _CMAKE_TOOLCHAIN_PREFIX
|
||||
|
||||
IF(NOT CMAKE_CXX_COMPILER)
|
||||
SET(CMAKE_CXX_COMPILER_INIT NOTFOUND)
|
||||
|
||||
# prefer the environment variable CXX
|
||||
IF($ENV{CXX} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_CXX_COMPILER_INIT $ENV{CXX} PROGRAM PROGRAM_ARGS CMAKE_CXX_FLAGS_ENV_INIT)
|
||||
IF(CMAKE_CXX_FLAGS_ENV_INIT)
|
||||
SET(CMAKE_CXX_COMPILER_ARG1 "${CMAKE_CXX_FLAGS_ENV_INIT}" CACHE STRING "First argument to CXX compiler")
|
||||
ENDIF(CMAKE_CXX_FLAGS_ENV_INIT)
|
||||
IF(NOT EXISTS ${CMAKE_CXX_COMPILER_INIT})
|
||||
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable CXX:\n$ENV{CXX}.\n${CMAKE_CXX_COMPILER_INIT}")
|
||||
ENDIF(NOT EXISTS ${CMAKE_CXX_COMPILER_INIT})
|
||||
ENDIF($ENV{CXX} MATCHES ".+")
|
||||
|
||||
# next prefer the generator specified compiler
|
||||
IF(CMAKE_GENERATOR_CXX)
|
||||
IF(NOT CMAKE_CXX_COMPILER_INIT)
|
||||
SET(CMAKE_CXX_COMPILER_INIT ${CMAKE_GENERATOR_CXX})
|
||||
ENDIF(NOT CMAKE_CXX_COMPILER_INIT)
|
||||
ENDIF(CMAKE_GENERATOR_CXX)
|
||||
|
||||
# finally list compilers to try
|
||||
IF(CMAKE_CXX_COMPILER_INIT)
|
||||
SET(CMAKE_CXX_COMPILER_LIST ${CMAKE_CXX_COMPILER_INIT})
|
||||
ELSE(CMAKE_CXX_COMPILER_INIT)
|
||||
SET(CMAKE_CXX_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}c++ ${_CMAKE_TOOLCHAIN_PREFIX}g++ CC aCC cl bcc xlC)
|
||||
ENDIF(CMAKE_CXX_COMPILER_INIT)
|
||||
|
||||
# Find the compiler.
|
||||
IF (_CMAKE_USER_C_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_CXX_COMPILER NAMES ${CMAKE_CXX_COMPILER_LIST} PATHS ${_CMAKE_USER_C_COMPILER_PATH} DOC "C++ compiler" NO_DEFAULT_PATH)
|
||||
ENDIF (_CMAKE_USER_C_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_CXX_COMPILER NAMES ${CMAKE_CXX_COMPILER_LIST} DOC "C++ compiler")
|
||||
|
||||
IF(CMAKE_CXX_COMPILER_INIT AND NOT CMAKE_CXX_COMPILER)
|
||||
SET(CMAKE_CXX_COMPILER "${CMAKE_CXX_COMPILER_INIT}" CACHE FILEPATH "C++ compiler" FORCE)
|
||||
ENDIF(CMAKE_CXX_COMPILER_INIT AND NOT CMAKE_CXX_COMPILER)
|
||||
ELSE(NOT CMAKE_CXX_COMPILER)
|
||||
|
||||
# we only get here if CMAKE_CXX_COMPILER was specified using -D or a pre-made CMakeCache.txt
|
||||
# (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE
|
||||
#
|
||||
# if CMAKE_CXX_COMPILER is a list of length 2, use the first item as
|
||||
# CMAKE_CXX_COMPILER and the 2nd one as CMAKE_CXX_COMPILER_ARG1
|
||||
|
||||
LIST(LENGTH CMAKE_CXX_COMPILER _CMAKE_CXX_COMPILER_LIST_LENGTH)
|
||||
IF("${_CMAKE_CXX_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||
LIST(GET CMAKE_CXX_COMPILER 1 CMAKE_CXX_COMPILER_ARG1)
|
||||
LIST(GET CMAKE_CXX_COMPILER 0 CMAKE_CXX_COMPILER)
|
||||
ENDIF("${_CMAKE_CXX_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||
|
||||
# if a compiler was specified by the user but without path,
|
||||
# now try to find it with the full path
|
||||
# if it is found, force it into the cache,
|
||||
# if not, don't overwrite the setting (which was given by the user) with "NOTFOUND"
|
||||
# if the CXX compiler already had a path, reuse it for searching the C compiler
|
||||
GET_FILENAME_COMPONENT(_CMAKE_USER_CXX_COMPILER_PATH "${CMAKE_CXX_COMPILER}" PATH)
|
||||
IF(NOT _CMAKE_USER_CXX_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_CXX_COMPILER_WITH_PATH NAMES ${CMAKE_CXX_COMPILER})
|
||||
MARK_AS_ADVANCED(CMAKE_CXX_COMPILER_WITH_PATH)
|
||||
IF(CMAKE_CXX_COMPILER_WITH_PATH)
|
||||
SET(CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER_WITH_PATH} CACHE STRING "CXX compiler" FORCE)
|
||||
ENDIF(CMAKE_CXX_COMPILER_WITH_PATH)
|
||||
ENDIF(NOT _CMAKE_USER_CXX_COMPILER_PATH)
|
||||
ENDIF(NOT CMAKE_CXX_COMPILER)
|
||||
MARK_AS_ADVANCED(CMAKE_CXX_COMPILER)
|
||||
|
||||
IF (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
||||
GET_FILENAME_COMPONENT(_CMAKE_TOOLCHAIN_LOCATION "${CMAKE_CXX_COMPILER}" PATH)
|
||||
ENDIF (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
||||
|
||||
# This block was used before the compiler was identified by building a
|
||||
# source file. Unless g++ crashes when building a small C++
|
||||
# executable this should no longer be needed.
|
||||
#
|
||||
# The g++ that comes with BeOS 5 segfaults if you run "g++ -E"
|
||||
# ("gcc -E" is fine), which throws up a system dialog box that hangs cmake
|
||||
# until the user clicks "OK"...so for now, we just assume it's g++.
|
||||
# IF(BEOS)
|
||||
# SET(CMAKE_COMPILER_IS_GNUCXX 1)
|
||||
# SET(CMAKE_COMPILER_IS_GNUCXX_RUN 1)
|
||||
# ENDIF(BEOS)
|
||||
|
||||
# Build a small source file to identify the compiler.
|
||||
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||
SET(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
SET(CMAKE_CXX_PLATFORM_ID "Windows")
|
||||
|
||||
# TODO: Set the compiler id. It is probably MSVC but
|
||||
# the user may be using an integrated Intel compiler.
|
||||
# SET(CMAKE_CXX_COMPILER_ID "MSVC")
|
||||
ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||
IF(NOT CMAKE_CXX_COMPILER_ID_RUN)
|
||||
SET(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
|
||||
# Each entry in this list is a set of extra flags to try
|
||||
# adding to the compile line to see if it helps produce
|
||||
# a valid identification file.
|
||||
SET(CMAKE_CXX_COMPILER_ID_TEST_FLAGS
|
||||
# Try compiling to an object file only.
|
||||
"-c"
|
||||
)
|
||||
|
||||
# Try to identify the compiler.
|
||||
SET(CMAKE_CXX_COMPILER_ID)
|
||||
FILE(READ ${CMAKE_ROOT}/Modules/CMakePlatformId.h.in
|
||||
CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT)
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||
CMAKE_DETERMINE_COMPILER_ID(CXX CXXFLAGS CMakeCXXCompilerId.cpp)
|
||||
|
||||
# Set old compiler and platform id variables.
|
||||
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
SET(CMAKE_COMPILER_IS_GNUCXX 1)
|
||||
ENDIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
IF("${CMAKE_CXX_PLATFORM_ID}" MATCHES "MinGW")
|
||||
SET(CMAKE_COMPILER_IS_MINGW 1)
|
||||
ELSEIF("${CMAKE_CXX_PLATFORM_ID}" MATCHES "Cygwin")
|
||||
SET(CMAKE_COMPILER_IS_CYGWIN 1)
|
||||
ENDIF("${CMAKE_CXX_PLATFORM_ID}" MATCHES "MinGW")
|
||||
ENDIF(NOT CMAKE_CXX_COMPILER_ID_RUN)
|
||||
|
||||
# if we have a g++ cross compiler, they have usually some prefix, like
|
||||
# e.g. powerpc-linux-g++, arm-elf-g++ or i586-mingw32msvc-g++ , optionally
|
||||
# with a 3-component version number at the end (e.g. arm-eabi-gcc-4.5.2).
|
||||
# The other tools of the toolchain usually have the same prefix
|
||||
# NAME_WE cannot be used since then this test will fail for names lile
|
||||
# "arm-unknown-nto-qnx6.3.0-gcc.exe", where BASENAME would be
|
||||
# "arm-unknown-nto-qnx6" instead of the correct "arm-unknown-nto-qnx6.3.0-"
|
||||
IF (CMAKE_CROSSCOMPILING
|
||||
AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU"
|
||||
AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
GET_FILENAME_COMPONENT(COMPILER_BASENAME "${CMAKE_CXX_COMPILER}" NAME)
|
||||
IF (COMPILER_BASENAME MATCHES "^(.+-)[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF (COMPILER_BASENAME MATCHES "^(.+-)[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
|
||||
|
||||
# if "llvm-" is part of the prefix, remove it, since llvm doesn't have its own binutils
|
||||
# but uses the regular ar, objcopy, etc. (instead of llvm-objcopy etc.)
|
||||
IF ("${_CMAKE_TOOLCHAIN_PREFIX}" MATCHES "(.+-)?llvm-$")
|
||||
SET(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
||||
ENDIF ("${_CMAKE_TOOLCHAIN_PREFIX}" MATCHES "(.+-)?llvm-$")
|
||||
|
||||
ENDIF (CMAKE_CROSSCOMPILING
|
||||
AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU"
|
||||
AND NOT _CMAKE_TOOLCHAIN_PREFIX)
|
||||
|
||||
INCLUDE(CMakeFindBinUtils)
|
||||
IF(MSVC_CXX_ARCHITECTURE_ID)
|
||||
SET(SET_MSVC_CXX_ARCHITECTURE_ID
|
||||
"SET(MSVC_CXX_ARCHITECTURE_ID ${MSVC_CXX_ARCHITECTURE_ID})")
|
||||
ENDIF(MSVC_CXX_ARCHITECTURE_ID)
|
||||
# configure all variables set in this file
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeCXXCompiler.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeCXXCompiler.cmake
|
||||
@ONLY IMMEDIATE # IMMEDIATE must be here for compatibility mode <= 2.0
|
||||
)
|
||||
|
||||
SET(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
||||
106
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake
vendored
Normal file
106
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2008-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Function to compile a source file to identify the compiler ABI.
|
||||
# This is used internally by CMake and should not be included by user
|
||||
# code.
|
||||
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeParseImplicitLinkInfo.cmake)
|
||||
|
||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src)
|
||||
IF(NOT DEFINED CMAKE_DETERMINE_${lang}_ABI_COMPILED)
|
||||
MESSAGE(STATUS "Detecting ${lang} compiler ABI info")
|
||||
|
||||
# Compile the ABI identification source.
|
||||
SET(BIN "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeDetermineCompilerABI_${lang}.bin")
|
||||
SET(CMAKE_FLAGS )
|
||||
IF(DEFINED CMAKE_${lang}_VERBOSE_FLAG)
|
||||
SET(CMAKE_FLAGS "-DCMAKE_EXE_LINKER_FLAGS=${CMAKE_${lang}_VERBOSE_FLAG}")
|
||||
ENDIF()
|
||||
TRY_COMPILE(CMAKE_DETERMINE_${lang}_ABI_COMPILED
|
||||
${CMAKE_BINARY_DIR} ${src}
|
||||
CMAKE_FLAGS "${CMAKE_FLAGS}"
|
||||
"-DCMAKE_${lang}_STANDARD_LIBRARIES="
|
||||
# We need ignore these warnings because some platforms need
|
||||
# CMAKE_${lang}_STANDARD_LIBRARIES to link properly and we
|
||||
# don't care when we are just determining the ABI.
|
||||
"--no-warn-unused-cli"
|
||||
OUTPUT_VARIABLE OUTPUT
|
||||
COPY_FILE "${BIN}"
|
||||
)
|
||||
|
||||
# Load the resulting information strings.
|
||||
IF(CMAKE_DETERMINE_${lang}_ABI_COMPILED)
|
||||
MESSAGE(STATUS "Detecting ${lang} compiler ABI info - done")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Detecting ${lang} compiler ABI info compiled with the following output:\n${OUTPUT}\n\n")
|
||||
FILE(STRINGS "${BIN}" ABI_STRINGS LIMIT_COUNT 2 REGEX "INFO:[^[]*\\[")
|
||||
FOREACH(info ${ABI_STRINGS})
|
||||
IF("${info}" MATCHES ".*INFO:sizeof_dptr\\[0*([^]]*)\\].*")
|
||||
STRING(REGEX REPLACE ".*INFO:sizeof_dptr\\[0*([^]]*)\\].*" "\\1" ABI_SIZEOF_DPTR "${info}")
|
||||
ENDIF("${info}" MATCHES ".*INFO:sizeof_dptr\\[0*([^]]*)\\].*")
|
||||
IF("${info}" MATCHES ".*INFO:abi\\[([^]]*)\\].*")
|
||||
STRING(REGEX REPLACE ".*INFO:abi\\[([^]]*)\\].*" "\\1" ABI_NAME "${info}")
|
||||
ENDIF("${info}" MATCHES ".*INFO:abi\\[([^]]*)\\].*")
|
||||
ENDFOREACH(info)
|
||||
|
||||
IF(ABI_SIZEOF_DPTR)
|
||||
SET(CMAKE_${lang}_SIZEOF_DATA_PTR "${ABI_SIZEOF_DPTR}" PARENT_SCOPE)
|
||||
ENDIF(ABI_SIZEOF_DPTR)
|
||||
|
||||
IF(ABI_NAME)
|
||||
SET(CMAKE_${lang}_COMPILER_ABI "${ABI_NAME}" PARENT_SCOPE)
|
||||
ENDIF(ABI_NAME)
|
||||
|
||||
# Parse implicit linker information for this language, if available.
|
||||
SET(implicit_dirs "")
|
||||
SET(implicit_libs "")
|
||||
SET(MULTI_ARCH FALSE)
|
||||
IF(DEFINED CMAKE_OSX_ARCHITECTURES)
|
||||
IF( "${CMAKE_OSX_ARCHITECTURES}" MATCHES ";" )
|
||||
SET(MULTI_ARCH TRUE)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF(CMAKE_${lang}_VERBOSE_FLAG
|
||||
# Implicit link information cannot be used explicitly for
|
||||
# multiple OS X architectures, so we skip it.
|
||||
AND NOT MULTI_ARCH
|
||||
# Skip this with Xcode for now.
|
||||
AND NOT "${CMAKE_GENERATOR}" MATCHES Xcode)
|
||||
CMAKE_PARSE_IMPLICIT_LINK_INFO("${OUTPUT}" implicit_libs implicit_dirs log
|
||||
"${CMAKE_${lang}_IMPLICIT_OBJECT_REGEX}")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Parsed ${lang} implicit link information from above output:\n${log}\n\n")
|
||||
ENDIF()
|
||||
SET(CMAKE_${lang}_IMPLICIT_LINK_LIBRARIES "${implicit_libs}" PARENT_SCOPE)
|
||||
SET(CMAKE_${lang}_IMPLICIT_LINK_DIRECTORIES "${implicit_dirs}" PARENT_SCOPE)
|
||||
|
||||
# Detect library architecture directory name.
|
||||
IF(CMAKE_LIBRARY_ARCHITECTURE_REGEX)
|
||||
FOREACH(dir ${implicit_dirs})
|
||||
IF("${dir}" MATCHES "/lib/${CMAKE_LIBRARY_ARCHITECTURE_REGEX}$")
|
||||
GET_FILENAME_COMPONENT(arch "${dir}" NAME)
|
||||
SET(CMAKE_${lang}_LIBRARY_ARCHITECTURE "${arch}" PARENT_SCOPE)
|
||||
BREAK()
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
ENDIF()
|
||||
|
||||
ELSE(CMAKE_DETERMINE_${lang}_ABI_COMPILED)
|
||||
MESSAGE(STATUS "Detecting ${lang} compiler ABI info - failed")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
"Detecting ${lang} compiler ABI info failed to compile with the following output:\n${OUTPUT}\n\n")
|
||||
ENDIF(CMAKE_DETERMINE_${lang}_ABI_COMPILED)
|
||||
ENDIF(NOT DEFINED CMAKE_DETERMINE_${lang}_ABI_COMPILED)
|
||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ABI)
|
||||
315
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake
vendored
Normal file
315
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake
vendored
Normal file
@@ -0,0 +1,315 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Function to compile a source file to identify the compiler. This is
|
||||
# used internally by CMake and should not be included by user code.
|
||||
# If successful, sets CMAKE_<lang>_COMPILER_ID and CMAKE_<lang>_PLATFORM_ID
|
||||
|
||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
|
||||
# Make sure the compiler arguments are clean.
|
||||
STRING(STRIP "${CMAKE_${lang}_COMPILER_ARG1}" CMAKE_${lang}_COMPILER_ID_ARG1)
|
||||
STRING(REGEX REPLACE " +" ";" CMAKE_${lang}_COMPILER_ID_ARG1 "${CMAKE_${lang}_COMPILER_ID_ARG1}")
|
||||
|
||||
# Make sure user-specified compiler flags are used.
|
||||
IF(CMAKE_${lang}_FLAGS)
|
||||
SET(CMAKE_${lang}_COMPILER_ID_FLAGS ${CMAKE_${lang}_FLAGS})
|
||||
ELSE(CMAKE_${lang}_FLAGS)
|
||||
SET(CMAKE_${lang}_COMPILER_ID_FLAGS $ENV{${flagvar}})
|
||||
ENDIF(CMAKE_${lang}_FLAGS)
|
||||
STRING(REGEX REPLACE " " ";" CMAKE_${lang}_COMPILER_ID_FLAGS_LIST "${CMAKE_${lang}_COMPILER_ID_FLAGS}")
|
||||
|
||||
# Compute the directory in which to run the test.
|
||||
SET(CMAKE_${lang}_COMPILER_ID_DIR ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CompilerId${lang})
|
||||
|
||||
# Try building with no extra flags and then try each set
|
||||
# of helper flags. Stop when the compiler is identified.
|
||||
FOREACH(flags "" ${CMAKE_${lang}_COMPILER_ID_TEST_FLAGS})
|
||||
IF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||
CMAKE_DETERMINE_COMPILER_ID_BUILD("${lang}" "${flags}" "${src}")
|
||||
FOREACH(file ${COMPILER_${lang}_PRODUCED_FILES})
|
||||
CMAKE_DETERMINE_COMPILER_ID_CHECK("${lang}" "${CMAKE_${lang}_COMPILER_ID_DIR}/${file}" "${src}")
|
||||
ENDFOREACH(file)
|
||||
ENDIF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||
ENDFOREACH(flags)
|
||||
|
||||
# If the compiler is still unknown, try to query its vendor.
|
||||
IF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||
CMAKE_DETERMINE_COMPILER_ID_VENDOR(${lang})
|
||||
ENDIF()
|
||||
|
||||
# if the format is unknown after all files have been checked, put "Unknown" in the cache
|
||||
IF(NOT CMAKE_EXECUTABLE_FORMAT)
|
||||
SET(CMAKE_EXECUTABLE_FORMAT "Unknown" CACHE INTERNAL "Executable file format")
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_FORMAT)
|
||||
|
||||
# Display the final identification result.
|
||||
IF(CMAKE_${lang}_COMPILER_ID)
|
||||
MESSAGE(STATUS "The ${lang} compiler identification is "
|
||||
"${CMAKE_${lang}_COMPILER_ID}")
|
||||
ELSE(CMAKE_${lang}_COMPILER_ID)
|
||||
MESSAGE(STATUS "The ${lang} compiler identification is unknown")
|
||||
ENDIF(CMAKE_${lang}_COMPILER_ID)
|
||||
|
||||
SET(CMAKE_${lang}_COMPILER_ID "${CMAKE_${lang}_COMPILER_ID}" PARENT_SCOPE)
|
||||
SET(CMAKE_${lang}_PLATFORM_ID "${CMAKE_${lang}_PLATFORM_ID}" PARENT_SCOPE)
|
||||
SET(MSVC_${lang}_ARCHITECTURE_ID "${MSVC_${lang}_ARCHITECTURE_ID}"
|
||||
PARENT_SCOPE)
|
||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Function to write the compiler id source file.
|
||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_WRITE lang src)
|
||||
FILE(READ ${CMAKE_ROOT}/Modules/${src}.in ID_CONTENT_IN)
|
||||
STRING(CONFIGURE "${ID_CONTENT_IN}" ID_CONTENT_OUT @ONLY)
|
||||
FILE(WRITE ${CMAKE_${lang}_COMPILER_ID_DIR}/${src} "${ID_CONTENT_OUT}")
|
||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_WRITE)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Function to build the compiler id source file and look for output
|
||||
# files.
|
||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags src)
|
||||
# Create a clean working directory.
|
||||
FILE(REMOVE_RECURSE ${CMAKE_${lang}_COMPILER_ID_DIR})
|
||||
FILE(MAKE_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR})
|
||||
CMAKE_DETERMINE_COMPILER_ID_WRITE("${lang}" "${src}")
|
||||
|
||||
# Construct a description of this test case.
|
||||
SET(COMPILER_DESCRIPTION
|
||||
"Compiler: ${CMAKE_${lang}_COMPILER} ${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||
Build flags: ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||
Id flags: ${testflags}
|
||||
")
|
||||
|
||||
# Compile the compiler identification source.
|
||||
IF(COMMAND EXECUTE_PROCESS)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_${lang}_COMPILER}
|
||||
${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||
${testflags}
|
||||
"${src}"
|
||||
WORKING_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR}
|
||||
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||
ERROR_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||
RESULT_VARIABLE CMAKE_${lang}_COMPILER_ID_RESULT
|
||||
)
|
||||
ELSE(COMMAND EXECUTE_PROCESS)
|
||||
EXEC_PROGRAM(
|
||||
${CMAKE_${lang}_COMPILER} ${CMAKE_${lang}_COMPILER_ID_DIR}
|
||||
ARGS ${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||
${testflags}
|
||||
\"${src}\"
|
||||
OUTPUT_VARIABLE CMAKE_${lang}_COMPILER_ID_OUTPUT
|
||||
RETURN_VALUE CMAKE_${lang}_COMPILER_ID_RESULT
|
||||
)
|
||||
ENDIF(COMMAND EXECUTE_PROCESS)
|
||||
|
||||
# Check the result of compilation.
|
||||
IF(CMAKE_${lang}_COMPILER_ID_RESULT)
|
||||
# Compilation failed.
|
||||
SET(MSG
|
||||
"Compiling the ${lang} compiler identification source file \"${src}\" failed.
|
||||
${COMPILER_DESCRIPTION}
|
||||
The output was:
|
||||
${CMAKE_${lang}_COMPILER_ID_RESULT}
|
||||
${CMAKE_${lang}_COMPILER_ID_OUTPUT}
|
||||
|
||||
")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "${MSG}")
|
||||
#IF(NOT CMAKE_${lang}_COMPILER_ID_ALLOW_FAIL)
|
||||
# MESSAGE(FATAL_ERROR "${MSG}")
|
||||
#ENDIF(NOT CMAKE_${lang}_COMPILER_ID_ALLOW_FAIL)
|
||||
|
||||
# No output files should be inspected.
|
||||
SET(COMPILER_${lang}_PRODUCED_FILES)
|
||||
ELSE(CMAKE_${lang}_COMPILER_ID_RESULT)
|
||||
# Compilation succeeded.
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Compiling the ${lang} compiler identification source file \"${src}\" succeeded.
|
||||
${COMPILER_DESCRIPTION}
|
||||
The output was:
|
||||
${CMAKE_${lang}_COMPILER_ID_RESULT}
|
||||
${CMAKE_${lang}_COMPILER_ID_OUTPUT}
|
||||
|
||||
")
|
||||
|
||||
# Find the executable produced by the compiler, try all files in the
|
||||
# binary dir.
|
||||
FILE(GLOB COMPILER_${lang}_PRODUCED_FILES
|
||||
RELATIVE ${CMAKE_${lang}_COMPILER_ID_DIR}
|
||||
${CMAKE_${lang}_COMPILER_ID_DIR}/*)
|
||||
LIST(REMOVE_ITEM COMPILER_${lang}_PRODUCED_FILES "${src}")
|
||||
FOREACH(file ${COMPILER_${lang}_PRODUCED_FILES})
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Compilation of the ${lang} compiler identification source \""
|
||||
"${src}\" produced \"${file}\"\n\n")
|
||||
ENDFOREACH(file)
|
||||
|
||||
IF(NOT COMPILER_${lang}_PRODUCED_FILES)
|
||||
# No executable was found.
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
"Compilation of the ${lang} compiler identification source \""
|
||||
"${src}\" did not produce an executable in \""
|
||||
"${CMAKE_${lang}_COMPILER_ID_DIR}\".\n\n")
|
||||
ENDIF(NOT COMPILER_${lang}_PRODUCED_FILES)
|
||||
ENDIF(CMAKE_${lang}_COMPILER_ID_RESULT)
|
||||
|
||||
# Return the files produced by the compilation.
|
||||
SET(COMPILER_${lang}_PRODUCED_FILES "${COMPILER_${lang}_PRODUCED_FILES}" PARENT_SCOPE)
|
||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_BUILD lang testflags src)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Function to extract the compiler id from an executable.
|
||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_CHECK lang file)
|
||||
# Look for a compiler id if not yet known.
|
||||
IF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||
# Read the compiler identification string from the executable file.
|
||||
SET(COMPILER_ID)
|
||||
SET(PLATFORM_ID)
|
||||
FILE(STRINGS ${file}
|
||||
CMAKE_${lang}_COMPILER_ID_STRINGS LIMIT_COUNT 3 REGEX "INFO:")
|
||||
SET(HAVE_COMPILER_TWICE 0)
|
||||
FOREACH(info ${CMAKE_${lang}_COMPILER_ID_STRINGS})
|
||||
IF("${info}" MATCHES ".*INFO:compiler\\[([^]\"]*)\\].*")
|
||||
IF(COMPILER_ID)
|
||||
SET(COMPILER_ID_TWICE 1)
|
||||
ENDIF(COMPILER_ID)
|
||||
STRING(REGEX REPLACE ".*INFO:compiler\\[([^]]*)\\].*" "\\1"
|
||||
COMPILER_ID "${info}")
|
||||
ENDIF("${info}" MATCHES ".*INFO:compiler\\[([^]\"]*)\\].*")
|
||||
IF("${info}" MATCHES ".*INFO:platform\\[([^]\"]*)\\].*")
|
||||
STRING(REGEX REPLACE ".*INFO:platform\\[([^]]*)\\].*" "\\1"
|
||||
PLATFORM_ID "${info}")
|
||||
ENDIF("${info}" MATCHES ".*INFO:platform\\[([^]\"]*)\\].*")
|
||||
IF("${info}" MATCHES ".*INFO:arch\\[([^]\"]*)\\].*")
|
||||
STRING(REGEX REPLACE ".*INFO:arch\\[([^]]*)\\].*" "\\1"
|
||||
ARCHITECTURE_ID "${info}")
|
||||
ENDIF("${info}" MATCHES ".*INFO:arch\\[([^]\"]*)\\].*")
|
||||
ENDFOREACH(info)
|
||||
|
||||
# Check if a valid compiler and platform were found.
|
||||
IF(COMPILER_ID AND NOT COMPILER_ID_TWICE)
|
||||
SET(CMAKE_${lang}_COMPILER_ID "${COMPILER_ID}")
|
||||
SET(CMAKE_${lang}_PLATFORM_ID "${PLATFORM_ID}")
|
||||
SET(MSVC_${lang}_ARCHITECTURE_ID "${ARCHITECTURE_ID}")
|
||||
ENDIF(COMPILER_ID AND NOT COMPILER_ID_TWICE)
|
||||
|
||||
# Check the compiler identification string.
|
||||
IF(CMAKE_${lang}_COMPILER_ID)
|
||||
# The compiler identification was found.
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"The ${lang} compiler identification is ${CMAKE_${lang}_COMPILER_ID}, found in \""
|
||||
"${file}\"\n\n")
|
||||
ELSE(CMAKE_${lang}_COMPILER_ID)
|
||||
# The compiler identification could not be found.
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
"The ${lang} compiler identification could not be found in \""
|
||||
"${file}\"\n\n")
|
||||
ENDIF(CMAKE_${lang}_COMPILER_ID)
|
||||
ENDIF(NOT CMAKE_${lang}_COMPILER_ID)
|
||||
|
||||
# try to figure out the executable format: ELF, COFF, Mach-O
|
||||
IF(NOT CMAKE_EXECUTABLE_FORMAT)
|
||||
FILE(READ ${file} CMAKE_EXECUTABLE_MAGIC LIMIT 4 HEX)
|
||||
|
||||
# ELF files start with 0x7f"ELF"
|
||||
IF("${CMAKE_EXECUTABLE_MAGIC}" STREQUAL "7f454c46")
|
||||
SET(CMAKE_EXECUTABLE_FORMAT "ELF" CACHE INTERNAL "Executable file format")
|
||||
ENDIF("${CMAKE_EXECUTABLE_MAGIC}" STREQUAL "7f454c46")
|
||||
|
||||
# # COFF (.exe) files start with "MZ"
|
||||
# IF("${CMAKE_EXECUTABLE_MAGIC}" MATCHES "4d5a....")
|
||||
# SET(CMAKE_EXECUTABLE_FORMAT "COFF" CACHE STRING "Executable file format")
|
||||
# ENDIF("${CMAKE_EXECUTABLE_MAGIC}" MATCHES "4d5a....")
|
||||
#
|
||||
# # Mach-O files start with CAFEBABE or FEEDFACE, according to http://radio.weblogs.com/0100490/2003/01/28.html
|
||||
# IF("${CMAKE_EXECUTABLE_MAGIC}" MATCHES "cafebabe")
|
||||
# SET(CMAKE_EXECUTABLE_FORMAT "MACHO" CACHE STRING "Executable file format")
|
||||
# ENDIF("${CMAKE_EXECUTABLE_MAGIC}" MATCHES "cafebabe")
|
||||
# IF("${CMAKE_EXECUTABLE_MAGIC}" MATCHES "feedface")
|
||||
# SET(CMAKE_EXECUTABLE_FORMAT "MACHO" CACHE STRING "Executable file format")
|
||||
# ENDIF("${CMAKE_EXECUTABLE_MAGIC}" MATCHES "feedface")
|
||||
|
||||
ENDIF(NOT CMAKE_EXECUTABLE_FORMAT)
|
||||
IF(NOT DEFINED CMAKE_EXECUTABLE_FORMAT)
|
||||
SET(CMAKE_EXECUTABLE_FORMAT)
|
||||
ENDIF()
|
||||
# Return the information extracted.
|
||||
SET(CMAKE_${lang}_COMPILER_ID "${CMAKE_${lang}_COMPILER_ID}" PARENT_SCOPE)
|
||||
SET(CMAKE_${lang}_PLATFORM_ID "${CMAKE_${lang}_PLATFORM_ID}" PARENT_SCOPE)
|
||||
SET(MSVC_${lang}_ARCHITECTURE_ID "${MSVC_${lang}_ARCHITECTURE_ID}"
|
||||
PARENT_SCOPE)
|
||||
SET(CMAKE_EXECUTABLE_FORMAT "${CMAKE_EXECUTABLE_FORMAT}" PARENT_SCOPE)
|
||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_CHECK lang)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Function to query the compiler vendor.
|
||||
# This uses a table with entries of the form
|
||||
# list(APPEND CMAKE_${lang}_COMPILER_ID_VENDORS ${vendor})
|
||||
# set(CMAKE_${lang}_COMPILER_ID_VENDOR_FLAGS_${vendor} -some-vendor-flag)
|
||||
# set(CMAKE_${lang}_COMPILER_ID_VENDOR_REGEX_${vendor} "Some Vendor Output")
|
||||
# We try running the compiler with the flag for each vendor and
|
||||
# matching its regular expression in the output.
|
||||
FUNCTION(CMAKE_DETERMINE_COMPILER_ID_VENDOR lang)
|
||||
|
||||
IF(NOT CMAKE_${lang}_COMPILER_ID_DIR)
|
||||
# We get here when this function is called not from within CMAKE_DETERMINE_COMPILER_ID()
|
||||
# This is done e.g. for detecting the compiler ID for assemblers.
|
||||
# Compute the directory in which to run the test and Create a clean working directory.
|
||||
SET(CMAKE_${lang}_COMPILER_ID_DIR ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CompilerId${lang})
|
||||
FILE(REMOVE_RECURSE ${CMAKE_${lang}_COMPILER_ID_DIR})
|
||||
FILE(MAKE_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR})
|
||||
ENDIF(NOT CMAKE_${lang}_COMPILER_ID_DIR)
|
||||
|
||||
|
||||
FOREACH(vendor ${CMAKE_${lang}_COMPILER_ID_VENDORS})
|
||||
SET(flags ${CMAKE_${lang}_COMPILER_ID_VENDOR_FLAGS_${vendor}})
|
||||
SET(regex ${CMAKE_${lang}_COMPILER_ID_VENDOR_REGEX_${vendor}})
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_${lang}_COMPILER}
|
||||
${CMAKE_${lang}_COMPILER_ID_ARG1}
|
||||
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
|
||||
${flags}
|
||||
WORKING_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR}
|
||||
OUTPUT_VARIABLE output ERROR_VARIABLE output
|
||||
RESULT_VARIABLE result
|
||||
TIMEOUT 10
|
||||
)
|
||||
|
||||
IF("${lang}" STREQUAL "ASM")
|
||||
MESSAGE(STATUS "Checked for ${vendor}")
|
||||
MESSAGE(STATUS " Output: -${output}-")
|
||||
MESSAGE(STATUS " Result: -${result}-")
|
||||
ENDIF("${lang}" STREQUAL "ASM")
|
||||
|
||||
IF("${output}" MATCHES "${regex}")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Checking whether the ${lang} compiler is ${vendor} using \"${flags}\" "
|
||||
"matched \"${regex}\":\n${output}")
|
||||
SET(CMAKE_${lang}_COMPILER_ID "${vendor}" PARENT_SCOPE)
|
||||
BREAK()
|
||||
ELSE()
|
||||
IF("${result}" MATCHES "timeout")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
"Checking whether the ${lang} compiler is ${vendor} using \"${flags}\" "
|
||||
"terminated after 10 s due to timeout.")
|
||||
ELSE()
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
"Checking whether the ${lang} compiler is ${vendor} using \"${flags}\" "
|
||||
"did not match \"${regex}\":\n${output}")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
ENDFUNCTION(CMAKE_DETERMINE_COMPILER_ID_VENDOR)
|
||||
231
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineFortranCompiler.cmake
vendored
Normal file
231
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineFortranCompiler.cmake
vendored
Normal file
@@ -0,0 +1,231 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2004-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for Fortran programs
|
||||
# NOTE, a generator may set CMAKE_Fortran_COMPILER before
|
||||
# loading this file to force a compiler.
|
||||
# use environment variable FC first if defined by user, next use
|
||||
# the cmake variable CMAKE_GENERATOR_FC which can be defined by a generator
|
||||
# as a default compiler
|
||||
|
||||
IF(NOT CMAKE_Fortran_COMPILER)
|
||||
# prefer the environment variable CC
|
||||
IF($ENV{FC} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_Fortran_COMPILER_INIT $ENV{FC} PROGRAM PROGRAM_ARGS CMAKE_Fortran_FLAGS_ENV_INIT)
|
||||
IF(CMAKE_Fortran_FLAGS_ENV_INIT)
|
||||
SET(CMAKE_Fortran_COMPILER_ARG1 "${CMAKE_Fortran_FLAGS_ENV_INIT}" CACHE STRING "First argument to Fortran compiler")
|
||||
ENDIF(CMAKE_Fortran_FLAGS_ENV_INIT)
|
||||
IF(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
||||
ELSE(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
||||
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable FC:\n$ENV{FC}.")
|
||||
ENDIF(EXISTS ${CMAKE_Fortran_COMPILER_INIT})
|
||||
ENDIF($ENV{FC} MATCHES ".+")
|
||||
|
||||
# next try prefer the compiler specified by the generator
|
||||
IF(CMAKE_GENERATOR_FC)
|
||||
IF(NOT CMAKE_Fortran_COMPILER_INIT)
|
||||
SET(CMAKE_Fortran_COMPILER_INIT ${CMAKE_GENERATOR_FC})
|
||||
ENDIF(NOT CMAKE_Fortran_COMPILER_INIT)
|
||||
ENDIF(CMAKE_GENERATOR_FC)
|
||||
|
||||
# finally list compilers to try
|
||||
IF(CMAKE_Fortran_COMPILER_INIT)
|
||||
SET(CMAKE_Fortran_COMPILER_LIST ${CMAKE_Fortran_COMPILER_INIT})
|
||||
ELSE(CMAKE_Fortran_COMPILER_INIT)
|
||||
# Known compilers:
|
||||
# f77/f90/f95: generic compiler names
|
||||
# g77: GNU Fortran 77 compiler
|
||||
# gfortran: putative GNU Fortran 95+ compiler (in progress)
|
||||
# fort77: native F77 compiler under HP-UX (and some older Crays)
|
||||
# frt: Fujitsu F77 compiler
|
||||
# pathf90/pathf95/pathf2003: PathScale Fortran compiler
|
||||
# pgf77/pgf90/pgf95: Portland Group F77/F90/F95 compilers
|
||||
# xlf/xlf90/xlf95: IBM (AIX) F77/F90/F95 compilers
|
||||
# lf95: Lahey-Fujitsu F95 compiler
|
||||
# fl32: Microsoft Fortran 77 "PowerStation" compiler
|
||||
# af77: Apogee F77 compiler for Intergraph hardware running CLIX
|
||||
# epcf90: "Edinburgh Portable Compiler" F90
|
||||
# fort: Compaq (now HP) Fortran 90/95 compiler for Tru64 and Linux/Alpha
|
||||
# ifc: Intel Fortran 95 compiler for Linux/x86
|
||||
# efc: Intel Fortran 95 compiler for IA64
|
||||
#
|
||||
# The order is 95 or newer compilers first, then 90,
|
||||
# then 77 or older compilers, gnu is always last in the group,
|
||||
# so if you paid for a compiler it is picked by default.
|
||||
SET(CMAKE_Fortran_COMPILER_LIST
|
||||
ifort ifc af95 af90 efc f95 pathf2003 pathf95 pgf95 lf95 xlf95 fort
|
||||
gfortran gfortran-4 g95 f90 pathf90 pgf90 xlf90 epcf90 fort77
|
||||
frt pgf77 xlf fl32 af77 g77 f77
|
||||
)
|
||||
|
||||
# Vendor-specific compiler names.
|
||||
SET(_Fortran_COMPILER_NAMES_GNU gfortran gfortran-4 g95 g77)
|
||||
SET(_Fortran_COMPILER_NAMES_Intel ifort ifc efc)
|
||||
SET(_Fortran_COMPILER_NAMES_Absoft af95 af90 af77)
|
||||
SET(_Fortran_COMPILER_NAMES_PGI pgf95 pgf90 pgf77)
|
||||
SET(_Fortran_COMPILER_NAMES_PathScale pathf2003 pathf95 pathf90)
|
||||
SET(_Fortran_COMPILER_NAMES_XL xlf)
|
||||
SET(_Fortran_COMPILER_NAMES_VisualAge xlf95 xlf90 xlf)
|
||||
|
||||
# Prefer vendors matching the C and C++ compilers.
|
||||
SET(CMAKE_Fortran_COMPILER_LIST
|
||||
${_Fortran_COMPILER_NAMES_${CMAKE_C_COMPILER_ID}}
|
||||
${_Fortran_COMPILER_NAMES_${CMAKE_CXX_COMPILER_ID}}
|
||||
${CMAKE_Fortran_COMPILER_LIST})
|
||||
LIST(REMOVE_DUPLICATES CMAKE_Fortran_COMPILER_LIST)
|
||||
ENDIF(CMAKE_Fortran_COMPILER_INIT)
|
||||
|
||||
# Look for directories containing the C and C++ compilers.
|
||||
SET(_Fortran_COMPILER_HINTS)
|
||||
FOREACH(lang C CXX)
|
||||
IF(CMAKE_${lang}_COMPILER AND IS_ABSOLUTE "${CMAKE_${lang}_COMPILER}")
|
||||
GET_FILENAME_COMPONENT(_hint "${CMAKE_${lang}_COMPILER}" PATH)
|
||||
IF(IS_DIRECTORY "${_hint}")
|
||||
LIST(APPEND _Fortran_COMPILER_HINTS "${_hint}")
|
||||
ENDIF()
|
||||
SET(_hint)
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
||||
# Find the compiler.
|
||||
IF(_Fortran_COMPILER_HINTS)
|
||||
# Prefer directories containing C and C++ compilers.
|
||||
LIST(REMOVE_DUPLICATES _Fortran_COMPILER_HINTS)
|
||||
FIND_PROGRAM(CMAKE_Fortran_COMPILER
|
||||
NAMES ${CMAKE_Fortran_COMPILER_LIST}
|
||||
PATHS ${_Fortran_COMPILER_HINTS}
|
||||
NO_DEFAULT_PATH
|
||||
DOC "Fortran compiler")
|
||||
ENDIF()
|
||||
FIND_PROGRAM(CMAKE_Fortran_COMPILER NAMES ${CMAKE_Fortran_COMPILER_LIST} DOC "Fortran compiler")
|
||||
IF(CMAKE_Fortran_COMPILER_INIT AND NOT CMAKE_Fortran_COMPILER)
|
||||
SET(CMAKE_Fortran_COMPILER "${CMAKE_Fortran_COMPILER_INIT}" CACHE FILEPATH "Fortran compiler" FORCE)
|
||||
ENDIF(CMAKE_Fortran_COMPILER_INIT AND NOT CMAKE_Fortran_COMPILER)
|
||||
ELSE(NOT CMAKE_Fortran_COMPILER)
|
||||
# we only get here if CMAKE_Fortran_COMPILER was specified using -D or a pre-made CMakeCache.txt
|
||||
# (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE
|
||||
# if CMAKE_Fortran_COMPILER is a list of length 2, use the first item as
|
||||
# CMAKE_Fortran_COMPILER and the 2nd one as CMAKE_Fortran_COMPILER_ARG1
|
||||
|
||||
LIST(LENGTH CMAKE_Fortran_COMPILER _CMAKE_Fortran_COMPILER_LIST_LENGTH)
|
||||
IF("${_CMAKE_Fortran_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||
LIST(GET CMAKE_Fortran_COMPILER 1 CMAKE_Fortran_COMPILER_ARG1)
|
||||
LIST(GET CMAKE_Fortran_COMPILER 0 CMAKE_Fortran_COMPILER)
|
||||
ENDIF("${_CMAKE_Fortran_COMPILER_LIST_LENGTH}" EQUAL 2)
|
||||
|
||||
# if a compiler was specified by the user but without path,
|
||||
# now try to find it with the full path
|
||||
# if it is found, force it into the cache,
|
||||
# if not, don't overwrite the setting (which was given by the user) with "NOTFOUND"
|
||||
# if the C compiler already had a path, reuse it for searching the CXX compiler
|
||||
GET_FILENAME_COMPONENT(_CMAKE_USER_Fortran_COMPILER_PATH "${CMAKE_Fortran_COMPILER}" PATH)
|
||||
IF(NOT _CMAKE_USER_Fortran_COMPILER_PATH)
|
||||
FIND_PROGRAM(CMAKE_Fortran_COMPILER_WITH_PATH NAMES ${CMAKE_Fortran_COMPILER})
|
||||
MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER_WITH_PATH)
|
||||
IF(CMAKE_Fortran_COMPILER_WITH_PATH)
|
||||
SET(CMAKE_Fortran_COMPILER ${CMAKE_Fortran_COMPILER_WITH_PATH}
|
||||
CACHE STRING "Fortran compiler" FORCE)
|
||||
ENDIF(CMAKE_Fortran_COMPILER_WITH_PATH)
|
||||
ENDIF(NOT _CMAKE_USER_Fortran_COMPILER_PATH)
|
||||
ENDIF(NOT CMAKE_Fortran_COMPILER)
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER)
|
||||
|
||||
# Build a small source file to identify the compiler.
|
||||
IF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||
SET(CMAKE_Fortran_COMPILER_ID_RUN 1)
|
||||
SET(CMAKE_Fortran_PLATFORM_ID "Windows")
|
||||
|
||||
# TODO: Set the compiler id. It is probably MSVC but
|
||||
# the user may be using an integrated Intel compiler.
|
||||
# SET(CMAKE_Fortran_COMPILER_ID "MSVC")
|
||||
ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
||||
|
||||
IF(NOT CMAKE_Fortran_COMPILER_ID_RUN)
|
||||
SET(CMAKE_Fortran_COMPILER_ID_RUN 1)
|
||||
|
||||
# Each entry in this list is a set of extra flags to try
|
||||
# adding to the compile line to see if it helps produce
|
||||
# a valid identification executable.
|
||||
SET(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS
|
||||
# Try compiling to an object file only.
|
||||
"-c"
|
||||
|
||||
# Intel on windows does not preprocess by default.
|
||||
"-fpp"
|
||||
)
|
||||
|
||||
# Table of per-vendor compiler id flags with expected output.
|
||||
LIST(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS Compaq)
|
||||
SET(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_Compaq "-what")
|
||||
SET(CMAKE_Fortran_COMPILER_ID_VENDOR_REGEX_Compaq "Compaq Visual Fortran")
|
||||
LIST(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS NAG) # Numerical Algorithms Group
|
||||
SET(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_NAG "-V")
|
||||
SET(CMAKE_Fortran_COMPILER_ID_VENDOR_REGEX_NAG "NAG Fortran Compiler")
|
||||
|
||||
# Try to identify the compiler.
|
||||
SET(CMAKE_Fortran_COMPILER_ID)
|
||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||
CMAKE_DETERMINE_COMPILER_ID(Fortran FFLAGS CMakeFortranCompilerId.F)
|
||||
|
||||
# Fall back to old is-GNU test.
|
||||
IF(NOT CMAKE_Fortran_COMPILER_ID)
|
||||
EXEC_PROGRAM(${CMAKE_Fortran_COMPILER}
|
||||
ARGS ${CMAKE_Fortran_COMPILER_ID_FLAGS_LIST} -E "\"${CMAKE_ROOT}/Modules/CMakeTestGNU.c\""
|
||||
OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT RETURN_VALUE CMAKE_COMPILER_RETURN)
|
||||
IF(NOT CMAKE_COMPILER_RETURN)
|
||||
IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_GNU.*" )
|
||||
SET(CMAKE_Fortran_COMPILER_ID "GNU")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Determining if the Fortran compiler is GNU succeeded with "
|
||||
"the following output:\n${CMAKE_COMPILER_OUTPUT}\n\n")
|
||||
ELSE("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_GNU.*" )
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Determining if the Fortran compiler is GNU failed with "
|
||||
"the following output:\n${CMAKE_COMPILER_OUTPUT}\n\n")
|
||||
ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_GNU.*" )
|
||||
IF(NOT CMAKE_Fortran_PLATFORM_ID)
|
||||
IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_MINGW.*" )
|
||||
SET(CMAKE_Fortran_PLATFORM_ID "MinGW")
|
||||
ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_MINGW.*" )
|
||||
IF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_CYGWIN.*" )
|
||||
SET(CMAKE_Fortran_PLATFORM_ID "Cygwin")
|
||||
ENDIF("${CMAKE_COMPILER_OUTPUT}" MATCHES ".*THIS_IS_CYGWIN.*" )
|
||||
ENDIF(NOT CMAKE_Fortran_PLATFORM_ID)
|
||||
ENDIF(NOT CMAKE_COMPILER_RETURN)
|
||||
ENDIF(NOT CMAKE_Fortran_COMPILER_ID)
|
||||
|
||||
# Set old compiler and platform id variables.
|
||||
IF("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU")
|
||||
SET(CMAKE_COMPILER_IS_GNUG77 1)
|
||||
ENDIF("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU")
|
||||
IF("${CMAKE_Fortran_PLATFORM_ID}" MATCHES "MinGW")
|
||||
SET(CMAKE_COMPILER_IS_MINGW 1)
|
||||
ELSEIF("${CMAKE_Fortran_PLATFORM_ID}" MATCHES "Cygwin")
|
||||
SET(CMAKE_COMPILER_IS_CYGWIN 1)
|
||||
ENDIF("${CMAKE_Fortran_PLATFORM_ID}" MATCHES "MinGW")
|
||||
ENDIF(NOT CMAKE_Fortran_COMPILER_ID_RUN)
|
||||
|
||||
INCLUDE(CMakeFindBinUtils)
|
||||
|
||||
IF(MSVC_Fortran_ARCHITECTURE_ID)
|
||||
SET(SET_MSVC_Fortran_ARCHITECTURE_ID
|
||||
"SET(MSVC_Fortran_ARCHITECTURE_ID ${MSVC_Fortran_ARCHITECTURE_ID})")
|
||||
ENDIF()
|
||||
# configure variables set in this file for fast reload later on
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeFortranCompiler.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeFortranCompiler.cmake
|
||||
@ONLY IMMEDIATE # IMMEDIATE must be here for compatibility mode <= 2.0
|
||||
)
|
||||
SET(CMAKE_Fortran_COMPILER_ENV_VAR "FC")
|
||||
102
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineJavaCompiler.cmake
vendored
Normal file
102
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineJavaCompiler.cmake
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for Java programs
|
||||
# NOTE, a generator may set CMAKE_Java_COMPILER before
|
||||
# loading this file to force a compiler.
|
||||
|
||||
IF(NOT CMAKE_Java_COMPILER)
|
||||
# prefer the environment variable CC
|
||||
IF($ENV{JAVA_COMPILER} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_Java_COMPILER_INIT $ENV{JAVA_COMPILER} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
||||
IF(CMAKE_Java_FLAGS_ENV_INIT)
|
||||
SET(CMAKE_Java_COMPILER_ARG1 "${CMAKE_Java_FLAGS_ENV_INIT}" CACHE STRING "First argument to Java compiler")
|
||||
ENDIF(CMAKE_Java_FLAGS_ENV_INIT)
|
||||
IF(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
|
||||
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_COMPILER:\n$ENV{JAVA_COMPILER}.")
|
||||
ENDIF(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
|
||||
ENDIF($ENV{JAVA_COMPILER} MATCHES ".+")
|
||||
|
||||
IF($ENV{JAVA_RUNTIME} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_Java_RUNTIME_INIT $ENV{JAVA_RUNTIME} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
||||
IF(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
|
||||
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_RUNTIME:\n$ENV{JAVA_RUNTIME}.")
|
||||
ENDIF(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
|
||||
ENDIF($ENV{JAVA_RUNTIME} MATCHES ".+")
|
||||
|
||||
IF($ENV{JAVA_ARCHIVE} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_Java_ARCHIVE_INIT $ENV{JAVA_ARCHIVE} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
|
||||
IF(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
|
||||
MESSAGE(SEND_ERROR "Could not find compiler set in environment variable JAVA_ARCHIVE:\n$ENV{JAVA_ARCHIVE}.")
|
||||
ENDIF(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
|
||||
ENDIF($ENV{JAVA_ARCHIVE} MATCHES ".+")
|
||||
|
||||
SET(Java_BIN_PATH
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\2.0;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.9;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.8;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.7;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.6;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.5;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
|
||||
$ENV{JAVA_HOME}/bin
|
||||
/usr/bin
|
||||
/usr/lib/java/bin
|
||||
/usr/share/java/bin
|
||||
/usr/local/bin
|
||||
/usr/local/java/bin
|
||||
/usr/local/java/share/bin
|
||||
/usr/java/j2sdk1.4.2_04
|
||||
/usr/lib/j2sdk1.4-sun/bin
|
||||
/usr/java/j2sdk1.4.2_09/bin
|
||||
/usr/lib/j2sdk1.5-sun/bin
|
||||
/opt/sun-jdk-1.5.0.04/bin
|
||||
)
|
||||
# if no compiler has been specified yet, then look for one
|
||||
IF(CMAKE_Java_COMPILER_INIT)
|
||||
SET(CMAKE_Java_COMPILER ${CMAKE_Java_COMPILER_INIT} CACHE PATH "Java Compiler")
|
||||
ELSE(CMAKE_Java_COMPILER_INIT)
|
||||
FIND_PROGRAM(CMAKE_Java_COMPILER
|
||||
NAMES javac
|
||||
PATHS ${Java_BIN_PATH}
|
||||
)
|
||||
ENDIF(CMAKE_Java_COMPILER_INIT)
|
||||
|
||||
# if no runtime has been specified yet, then look for one
|
||||
IF(CMAKE_Java_RUNTIME_INIT)
|
||||
SET(CMAKE_Java_RUNTIME ${CMAKE_Java_RUNTIME_INIT} CACHE PATH "Java Compiler")
|
||||
ELSE(CMAKE_Java_RUNTIME_INIT)
|
||||
FIND_PROGRAM(CMAKE_Java_RUNTIME
|
||||
NAMES java
|
||||
PATHS ${Java_BIN_PATH}
|
||||
)
|
||||
ENDIF(CMAKE_Java_RUNTIME_INIT)
|
||||
|
||||
# if no archive has been specified yet, then look for one
|
||||
IF(CMAKE_Java_ARCHIVE_INIT)
|
||||
SET(CMAKE_Java_ARCHIVE ${CMAKE_Java_ARCHIVE_INIT} CACHE PATH "Java Compiler")
|
||||
ELSE(CMAKE_Java_ARCHIVE_INIT)
|
||||
FIND_PROGRAM(CMAKE_Java_ARCHIVE
|
||||
NAMES jar
|
||||
PATHS ${Java_BIN_PATH}
|
||||
)
|
||||
ENDIF(CMAKE_Java_ARCHIVE_INIT)
|
||||
ENDIF(NOT CMAKE_Java_COMPILER)
|
||||
MARK_AS_ADVANCED(CMAKE_Java_COMPILER)
|
||||
|
||||
# configure variables set in this file for fast reload later on
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeJavaCompiler.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeJavaCompiler.cmake IMMEDIATE @ONLY)
|
||||
SET(CMAKE_Java_COMPILER_ENV_VAR "JAVA_COMPILER")
|
||||
67
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineRCCompiler.cmake
vendored
Normal file
67
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineRCCompiler.cmake
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2004-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# determine the compiler to use for C programs
|
||||
# NOTE, a generator may set CMAKE_C_COMPILER before
|
||||
# loading this file to force a compiler.
|
||||
# use environment variable CCC first if defined by user, next use
|
||||
# the cmake variable CMAKE_GENERATOR_CC which can be defined by a generator
|
||||
# as a default compiler
|
||||
IF(NOT CMAKE_RC_COMPILER)
|
||||
# prefer the environment variable CC
|
||||
IF($ENV{RC} MATCHES ".+")
|
||||
GET_FILENAME_COMPONENT(CMAKE_RC_COMPILER_INIT $ENV{RC} PROGRAM PROGRAM_ARGS CMAKE_RC_FLAGS_ENV_INIT)
|
||||
IF(CMAKE_RC_FLAGS_ENV_INIT)
|
||||
SET(CMAKE_RC_COMPILER_ARG1 "${CMAKE_RC_FLAGS_ENV_INIT}" CACHE STRING "First argument to RC compiler")
|
||||
ENDIF(CMAKE_RC_FLAGS_ENV_INIT)
|
||||
IF(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
||||
ELSE(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
||||
MESSAGE(FATAL_ERROR "Could not find compiler set in environment variable RC:\n$ENV{RC}.")
|
||||
ENDIF(EXISTS ${CMAKE_RC_COMPILER_INIT})
|
||||
ENDIF($ENV{RC} MATCHES ".+")
|
||||
|
||||
# next try prefer the compiler specified by the generator
|
||||
IF(CMAKE_GENERATOR_RC)
|
||||
IF(NOT CMAKE_RC_COMPILER_INIT)
|
||||
SET(CMAKE_RC_COMPILER_INIT ${CMAKE_GENERATOR_RC})
|
||||
ENDIF(NOT CMAKE_RC_COMPILER_INIT)
|
||||
ENDIF(CMAKE_GENERATOR_RC)
|
||||
|
||||
# finally list compilers to try
|
||||
IF(CMAKE_RC_COMPILER_INIT)
|
||||
SET(CMAKE_RC_COMPILER_LIST ${CMAKE_RC_COMPILER_INIT})
|
||||
ELSE(CMAKE_RC_COMPILER_INIT)
|
||||
SET(CMAKE_RC_COMPILER_LIST rc)
|
||||
ENDIF(CMAKE_RC_COMPILER_INIT)
|
||||
|
||||
# Find the compiler.
|
||||
FIND_PROGRAM(CMAKE_RC_COMPILER NAMES ${CMAKE_RC_COMPILER_LIST} DOC "RC compiler")
|
||||
IF(CMAKE_RC_COMPILER_INIT AND NOT CMAKE_RC_COMPILER)
|
||||
SET(CMAKE_RC_COMPILER "${CMAKE_RC_COMPILER_INIT}" CACHE FILEPATH "RC compiler" FORCE)
|
||||
ENDIF(CMAKE_RC_COMPILER_INIT AND NOT CMAKE_RC_COMPILER)
|
||||
ENDIF(NOT CMAKE_RC_COMPILER)
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_RC_COMPILER)
|
||||
|
||||
GET_FILENAME_COMPONENT(_CMAKE_RC_COMPILER_NAME_WE ${CMAKE_RC_COMPILER} NAME_WE)
|
||||
IF(_CMAKE_RC_COMPILER_NAME_WE STREQUAL "windres")
|
||||
SET(CMAKE_RC_OUTPUT_EXTENSION .obj)
|
||||
ELSE()
|
||||
SET(CMAKE_RC_OUTPUT_EXTENSION .res)
|
||||
ENDIF()
|
||||
|
||||
# configure variables set in this file for fast reload later on
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeRCCompiler.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeRCCompiler.cmake IMMEDIATE)
|
||||
SET(CMAKE_RC_COMPILER_ENV_VAR "RC")
|
||||
176
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake
vendored
Normal file
176
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This module is used by the Makefile generator to determin the following variables:
|
||||
# CMAKE_SYSTEM_NAME - on unix this is uname -s, for windows it is Windows
|
||||
# CMAKE_SYSTEM_VERSION - on unix this is uname -r, for windows it is empty
|
||||
# CMAKE_SYSTEM - ${CMAKE_SYSTEM}-${CMAKE_SYSTEM_VERSION}, for windows: ${CMAKE_SYSTEM}
|
||||
#
|
||||
# Expected uname -s output:
|
||||
#
|
||||
# AIX AIX
|
||||
# BSD/OS BSD/OS
|
||||
# FreeBSD FreeBSD
|
||||
# HP-UX HP-UX
|
||||
# IRIX IRIX
|
||||
# Linux Linux
|
||||
# GNU/kFreeBSD GNU/kFreeBSD
|
||||
# NetBSD NetBSD
|
||||
# OpenBSD OpenBSD
|
||||
# OFS/1 (Digital Unix) OSF1
|
||||
# SCO OpenServer 5 SCO_SV
|
||||
# SCO UnixWare 7 UnixWare
|
||||
# SCO UnixWare (pre release 7) UNIX_SV
|
||||
# SCO XENIX Xenix
|
||||
# Solaris SunOS
|
||||
# SunOS SunOS
|
||||
# Tru64 Tru64
|
||||
# Ultrix ULTRIX
|
||||
# cygwin CYGWIN_NT-5.1
|
||||
# MacOSX Darwin
|
||||
|
||||
|
||||
# find out on which system cmake runs
|
||||
IF(CMAKE_HOST_UNIX)
|
||||
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
|
||||
IF(CMAKE_UNAME)
|
||||
EXEC_PROGRAM(uname ARGS -s OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_NAME)
|
||||
EXEC_PROGRAM(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION)
|
||||
IF(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|CYGWIN.*")
|
||||
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
||||
RETURN_VALUE val)
|
||||
ELSEIF(CMAKE_HOST_SYSTEM_NAME MATCHES "OpenBSD")
|
||||
EXEC_PROGRAM(arch ARGS -s OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
||||
RETURN_VALUE val)
|
||||
ELSE()
|
||||
EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
||||
RETURN_VALUE val)
|
||||
IF("${val}" GREATER 0)
|
||||
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
||||
RETURN_VALUE val)
|
||||
ENDIF("${val}" GREATER 0)
|
||||
ENDIF()
|
||||
# check the return of the last uname -m or -p
|
||||
IF("${val}" GREATER 0)
|
||||
SET(CMAKE_HOST_SYSTEM_PROCESSOR "unknown")
|
||||
ENDIF("${val}" GREATER 0)
|
||||
SET(CMAKE_UNAME ${CMAKE_UNAME} CACHE INTERNAL "uname command")
|
||||
# processor may have double quote in the name, and that needs to be removed
|
||||
STRING(REGEX REPLACE "\"" "" CMAKE_HOST_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||
STRING(REGEX REPLACE "/" "_" CMAKE_HOST_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||
ENDIF(CMAKE_UNAME)
|
||||
ELSE(CMAKE_HOST_UNIX)
|
||||
IF(CMAKE_HOST_WIN32)
|
||||
SET (CMAKE_HOST_SYSTEM_NAME "Windows")
|
||||
SET (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
|
||||
ENDIF(CMAKE_HOST_WIN32)
|
||||
ENDIF(CMAKE_HOST_UNIX)
|
||||
|
||||
# if a toolchain file is used, the user wants to cross compile.
|
||||
# in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
|
||||
# variables around so they can be used in CMakeLists.txt.
|
||||
# In all other cases, the host and target platform are the same.
|
||||
IF(CMAKE_TOOLCHAIN_FILE)
|
||||
# at first try to load it as path relative to the directory from which cmake has been run
|
||||
INCLUDE("${CMAKE_BINARY_DIR}/${CMAKE_TOOLCHAIN_FILE}" OPTIONAL RESULT_VARIABLE _INCLUDED_TOOLCHAIN_FILE)
|
||||
IF(NOT _INCLUDED_TOOLCHAIN_FILE)
|
||||
# if the file isn't found there, check the default locations
|
||||
INCLUDE("${CMAKE_TOOLCHAIN_FILE}" OPTIONAL RESULT_VARIABLE _INCLUDED_TOOLCHAIN_FILE)
|
||||
ENDIF(NOT _INCLUDED_TOOLCHAIN_FILE)
|
||||
|
||||
IF(_INCLUDED_TOOLCHAIN_FILE)
|
||||
SET(CMAKE_TOOLCHAIN_FILE "${_INCLUDED_TOOLCHAIN_FILE}" CACHE FILEPATH "The CMake toolchain file" FORCE)
|
||||
ELSE(_INCLUDED_TOOLCHAIN_FILE)
|
||||
MESSAGE(FATAL_ERROR "Could not find toolchain file: ${CMAKE_TOOLCHAIN_FILE}")
|
||||
SET(CMAKE_TOOLCHAIN_FILE "NOTFOUND" CACHE FILEPATH "The CMake toolchain file" FORCE)
|
||||
ENDIF(_INCLUDED_TOOLCHAIN_FILE)
|
||||
ENDIF(CMAKE_TOOLCHAIN_FILE)
|
||||
|
||||
|
||||
# if CMAKE_SYSTEM_NAME is here already set, either it comes from a toolchain file
|
||||
# or it was set via -DCMAKE_SYSTEM_NAME=...
|
||||
# if that's the case, assume we are crosscompiling
|
||||
IF(CMAKE_SYSTEM_NAME)
|
||||
IF(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
SET(CMAKE_CROSSCOMPILING TRUE)
|
||||
ENDIF(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
SET(PRESET_CMAKE_SYSTEM_NAME TRUE)
|
||||
ELSE(CMAKE_SYSTEM_NAME)
|
||||
SET(CMAKE_SYSTEM_NAME "${CMAKE_HOST_SYSTEM_NAME}")
|
||||
SET(CMAKE_SYSTEM_VERSION "${CMAKE_HOST_SYSTEM_VERSION}")
|
||||
SET(CMAKE_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||
SET(CMAKE_CROSSCOMPILING FALSE)
|
||||
SET(PRESET_CMAKE_SYSTEM_NAME FALSE)
|
||||
ENDIF(CMAKE_SYSTEM_NAME)
|
||||
|
||||
|
||||
MACRO(ADJUST_CMAKE_SYSTEM_VARIABLES _PREFIX)
|
||||
IF(NOT ${_PREFIX}_NAME)
|
||||
SET(${_PREFIX}_NAME "UnknownOS")
|
||||
ENDIF(NOT ${_PREFIX}_NAME)
|
||||
|
||||
# fix for BSD/OS , remove the /
|
||||
IF(${_PREFIX}_NAME MATCHES BSD.OS)
|
||||
SET(${_PREFIX}_NAME BSDOS)
|
||||
ENDIF(${_PREFIX}_NAME MATCHES BSD.OS)
|
||||
|
||||
# fix for GNU/kFreeBSD, remove the GNU/
|
||||
IF(${_PREFIX}_NAME MATCHES kFreeBSD)
|
||||
SET(${_PREFIX}_NAME kFreeBSD)
|
||||
ENDIF(${_PREFIX}_NAME MATCHES kFreeBSD)
|
||||
|
||||
# fix for CYGWIN which has windows version in it
|
||||
IF(${_PREFIX}_NAME MATCHES CYGWIN)
|
||||
SET(${_PREFIX}_NAME CYGWIN)
|
||||
ENDIF(${_PREFIX}_NAME MATCHES CYGWIN)
|
||||
|
||||
# set CMAKE_SYSTEM to the CMAKE_SYSTEM_NAME
|
||||
SET(${_PREFIX} ${${_PREFIX}_NAME})
|
||||
# if there is a CMAKE_SYSTEM_VERSION then add a -${CMAKE_SYSTEM_VERSION}
|
||||
IF(${_PREFIX}_VERSION)
|
||||
SET(${_PREFIX} ${${_PREFIX}}-${${_PREFIX}_VERSION})
|
||||
ENDIF(${_PREFIX}_VERSION)
|
||||
|
||||
ENDMACRO(ADJUST_CMAKE_SYSTEM_VARIABLES _PREFIX)
|
||||
|
||||
ADJUST_CMAKE_SYSTEM_VARIABLES(CMAKE_SYSTEM)
|
||||
ADJUST_CMAKE_SYSTEM_VARIABLES(CMAKE_HOST_SYSTEM)
|
||||
|
||||
# this file is also executed from cpack, then we don't need to generate these files
|
||||
# in this case there is no CMAKE_BINARY_DIR
|
||||
IF(CMAKE_BINARY_DIR)
|
||||
# write entry to the log file
|
||||
IF(PRESET_CMAKE_SYSTEM_NAME)
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"The target system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n")
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"The host system is: ${CMAKE_HOST_SYSTEM_NAME} - ${CMAKE_HOST_SYSTEM_VERSION} - ${CMAKE_HOST_SYSTEM_PROCESSOR}\n")
|
||||
ELSE(PRESET_CMAKE_SYSTEM_NAME)
|
||||
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"The system is: ${CMAKE_SYSTEM_NAME} - ${CMAKE_SYSTEM_VERSION} - ${CMAKE_SYSTEM_PROCESSOR}\n")
|
||||
ENDIF(PRESET_CMAKE_SYSTEM_NAME)
|
||||
|
||||
# if a toolchain file is used, it needs to be included in the configured file,
|
||||
# so settings done there are also available if they don't go in the cache and in TRY_COMPILE()
|
||||
SET(INCLUDE_CMAKE_TOOLCHAIN_FILE_IF_REQUIRED)
|
||||
IF(DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||
SET(INCLUDE_CMAKE_TOOLCHAIN_FILE_IF_REQUIRED "INCLUDE(\"${CMAKE_TOOLCHAIN_FILE}\")")
|
||||
ENDIF(DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||
|
||||
# configure variables set in this file for fast reload, the template file is defined at the top of this file
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeSystem.cmake.in
|
||||
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeSystem.cmake
|
||||
IMMEDIATE @ONLY)
|
||||
|
||||
ENDIF(CMAKE_BINARY_DIR)
|
||||
187
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineVSServicePack.cmake
vendored
Normal file
187
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeDetermineVSServicePack.cmake
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
# - Includes a public function for assisting users in trying to determine the
|
||||
# Visual Studio service pack in use.
|
||||
#
|
||||
# Sets the passed in variable to one of the following values or an empty
|
||||
# string if unknown.
|
||||
# vc80
|
||||
# vc80sp1
|
||||
# vc90
|
||||
# vc90sp1
|
||||
# vc100
|
||||
# vc100sp1
|
||||
#
|
||||
# Usage:
|
||||
# ===========================
|
||||
#
|
||||
# if(MSVC)
|
||||
# include(CMakeDetermineVSServicePack)
|
||||
# DetermineVSServicePack( my_service_pack )
|
||||
#
|
||||
# if( my_service_pack )
|
||||
# message(STATUS "Detected: ${my_service_pack}")
|
||||
# endif()
|
||||
# endif()
|
||||
#
|
||||
# ===========================
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2009-2011 Kitware, Inc.
|
||||
# Copyright 2009-2010 Philip Lowman <philip@yhbt.com>
|
||||
# Copyright 2010-2011 Aaron C. meadows <cmake@shadowguarddev.com>
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# [INTERNAL]
|
||||
# Please do not call this function directly
|
||||
function(_DetermineVSServicePackFromCompiler _OUT_VAR _cl_version)
|
||||
if (${_cl_version} VERSION_EQUAL "14.00.50727.42")
|
||||
set(_version "vc80")
|
||||
elseif(${_cl_version} VERSION_EQUAL "14.00.50727.762")
|
||||
set(_version "vc80sp1")
|
||||
elseif(${_cl_version} VERSION_EQUAL "15.00.21022.08")
|
||||
set(_version "vc90")
|
||||
elseif(${_cl_version} VERSION_EQUAL "15.00.30729.01")
|
||||
set(_version "vc90sp1")
|
||||
elseif(${_cl_version} VERSION_EQUAL "16.00.30319.01")
|
||||
set(_version "vc100")
|
||||
elseif(${_cl_version} VERSION_EQUAL "16.00.40219.01")
|
||||
set(_version "vc100sp1")
|
||||
else()
|
||||
set(_version "")
|
||||
endif()
|
||||
set(${_OUT_VAR} ${_version} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
|
||||
############################################################
|
||||
# [INTERNAL]
|
||||
# Please do not call this function directly
|
||||
function(_DetermineVSServicePack_FastCheckVersionWithCompiler _SUCCESS_VAR _VERSION_VAR)
|
||||
if(EXISTS ${CMAKE_CXX_COMPILER})
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_CXX_COMPILER} /?
|
||||
ERROR_VARIABLE _output
|
||||
OUTPUT_QUIET
|
||||
)
|
||||
|
||||
string(REGEX MATCH "Compiler Version [0-9]+.[0-9]+.[0-9]+.[0-9]+"
|
||||
_cl_version "${_output}")
|
||||
|
||||
if(_cl_version)
|
||||
string(REGEX MATCHALL "[0-9]+"
|
||||
_cl_version_list "${_cl_version}")
|
||||
list(GET _cl_version_list 0 _major)
|
||||
list(GET _cl_version_list 1 _minor)
|
||||
list(GET _cl_version_list 2 _patch)
|
||||
list(GET _cl_version_list 3 _tweak)
|
||||
|
||||
if("${_major}${_minor}" STREQUAL "${MSVC_VERSION}")
|
||||
set(_cl_version ${_major}.${_minor}.${_patch}.${_tweak})
|
||||
else()
|
||||
unset(_cl_version)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(_cl_version)
|
||||
set(${_SUCCESS_VAR} true PARENT_SCOPE)
|
||||
set(${_VERSION_VAR} ${_cl_version} PARENT_SCOPE)
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
############################################################
|
||||
# [INTERNAL]
|
||||
# Please do not call this function directly
|
||||
function(_DetermineVSServicePack_CheckVersionWithTryCompile _SUCCESS_VAR _VERSION_VAR)
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/return0.cc"
|
||||
"int main() { return 0; }\n")
|
||||
|
||||
try_compile(
|
||||
_CompileResult
|
||||
"${CMAKE_BINARY_DIR}"
|
||||
"${CMAKE_BINARY_DIR}/return0.cc"
|
||||
OUTPUT_VARIABLE _output
|
||||
COPY_FILE "${CMAKE_BINARY_DIR}/return0.cc")
|
||||
|
||||
file(REMOVE "${CMAKE_BINARY_DIR}/return0.cc")
|
||||
|
||||
string(REGEX MATCH "Compiler Version [0-9]+.[0-9]+.[0-9]+.[0-9]+"
|
||||
_cl_version "${_output}")
|
||||
|
||||
if(_cl_version)
|
||||
string(REGEX MATCHALL "[0-9]+"
|
||||
_cl_version_list "${_cl_version}")
|
||||
|
||||
list(GET _cl_version_list 0 _major)
|
||||
list(GET _cl_version_list 1 _minor)
|
||||
list(GET _cl_version_list 2 _patch)
|
||||
list(GET _cl_version_list 3 _tweak)
|
||||
|
||||
set(${_SUCCESS_VAR} true PARENT_SCOPE)
|
||||
set(${_VERSION_VAR} ${_major}.${_minor}.${_patch}.${_tweak} PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
############################################################
|
||||
# [INTERNAL]
|
||||
# Please do not call this function directly
|
||||
function(_DetermineVSServicePack_CheckVersionWithTryRun _SUCCESS_VAR _VERSION_VAR)
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/return0.cc"
|
||||
"#include <stdio.h>\n\nconst unsigned int CompilerVersion=_MSC_FULL_VER;\n\nint main(int argc, char* argv[])\n{\n int M( CompilerVersion/10000000);\n int m((CompilerVersion%10000000)/100000);\n int b(CompilerVersion%100000);\n\n printf(\"%d.%02d.%05d.01\",M,m,b);\n return 0;\n}\n")
|
||||
|
||||
try_run(
|
||||
_RunResult
|
||||
_CompileResult
|
||||
"${CMAKE_BINARY_DIR}"
|
||||
"${CMAKE_BINARY_DIR}/return0.cc"
|
||||
RUN_OUTPUT_VARIABLE _runoutput
|
||||
)
|
||||
|
||||
file(REMOVE "${CMAKE_BINARY_DIR}/return0.cc")
|
||||
|
||||
string(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+.[0-9]+"
|
||||
_cl_version "${_runoutput}")
|
||||
|
||||
if(_cl_version)
|
||||
set(${_SUCCESS_VAR} true PARENT_SCOPE)
|
||||
set(${_VERSION_VAR} ${_cl_version} PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
||||
#
|
||||
# A function to call to determine the Visual Studio service pack
|
||||
# in use. See documentation above.
|
||||
function(DetermineVSServicePack _pack)
|
||||
if(NOT DETERMINED_VS_SERVICE_PACK OR NOT ${_pack})
|
||||
|
||||
_DetermineVSServicePack_FastCheckVersionWithCompiler(DETERMINED_VS_SERVICE_PACK _cl_version)
|
||||
if(NOT DETERMINED_VS_SERVICE_PACK)
|
||||
_DetermineVSServicePack_CheckVersionWithTryCompile(DETERMINED_VS_SERVICE_PACK _cl_version)
|
||||
if(NOT DETERMINED_VS_SERVICE_PACK)
|
||||
_DetermineVSServicePack_CheckVersionWithTryRun(DETERMINED_VS_SERVICE_PACK _cl_version)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(DETERMINED_VS_SERVICE_PACK)
|
||||
|
||||
if(_cl_version)
|
||||
# Call helper function to determine VS version
|
||||
_DetermineVSServicePackFromCompiler(_sp "${_cl_version}")
|
||||
if(_sp)
|
||||
set(${_pack} ${_sp} CACHE INTERNAL
|
||||
"The Visual Studio Release with Service Pack")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
36
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeExportBuildSettings.cmake
vendored
Normal file
36
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeExportBuildSettings.cmake
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This module is purposely no longer documented. It does nothing useful.
|
||||
IF(NOT "${CMAKE_MINIMUM_REQUIRED_VERSION}" VERSION_LESS 2.7)
|
||||
MESSAGE(FATAL_ERROR
|
||||
"The functionality of this module has been dropped as of CMake 2.8. "
|
||||
"It was deemed harmful (confusing users by changing their compiler). "
|
||||
"Please remove calls to the CMAKE_EXPORT_BUILD_SETTINGS macro and "
|
||||
"stop including this module. "
|
||||
"If this project generates any files for use by external projects, "
|
||||
"remove any use of the CMakeImportBuildSettings module from them.")
|
||||
ENDIF()
|
||||
|
||||
# This macro used to store build settings of a project in a file to be
|
||||
# loaded by another project using CMAKE_IMPORT_BUILD_SETTINGS. Now it
|
||||
# creates a file that refuses to load (with comment explaining why).
|
||||
MACRO(CMAKE_EXPORT_BUILD_SETTINGS SETTINGS_FILE)
|
||||
IF(${SETTINGS_FILE} MATCHES ".+")
|
||||
CONFIGURE_FILE(${CMAKE_ROOT}/Modules/CMakeBuildSettings.cmake.in
|
||||
${SETTINGS_FILE} @ONLY IMMEDIATE)
|
||||
ELSE(${SETTINGS_FILE} MATCHES ".+")
|
||||
MESSAGE(SEND_ERROR "CMAKE_EXPORT_BUILD_SETTINGS called with no argument.")
|
||||
ENDIF(${SETTINGS_FILE} MATCHES ".+")
|
||||
ENDMACRO(CMAKE_EXPORT_BUILD_SETTINGS)
|
||||
75
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake
vendored
Normal file
75
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindBinUtils.cmake
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
|
||||
# search for additional tools required for C/C++ (and other languages ?)
|
||||
#
|
||||
# If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
|
||||
# as prefix for the tools (e.g. arm-elf-gcc etc.)
|
||||
# If the cmake variable _CMAKE_TOOLCHAIN_LOCATION is set, the compiler is
|
||||
# searched only there. The other tools are at first searched there, then
|
||||
# also in the default locations.
|
||||
#
|
||||
# Sets the following variables:
|
||||
# CMAKE_AR
|
||||
# CMAKE_RANLIB
|
||||
# CMAKE_LINKER
|
||||
# CMAKE_STRIP
|
||||
# CMAKE_INSTALL_NAME_TOOL
|
||||
|
||||
# on UNIX, cygwin and mingw
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# if it's the MS C/CXX compiler, search for link
|
||||
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
||||
|
||||
FIND_PROGRAM(CMAKE_LINKER NAMES link HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_LINKER)
|
||||
|
||||
# in all other cases search for ar, ranlib, etc.
|
||||
ELSE("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
||||
|
||||
FIND_PROGRAM(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
|
||||
FIND_PROGRAM(CMAKE_RANLIB NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ranlib HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
IF(NOT CMAKE_RANLIB)
|
||||
SET(CMAKE_RANLIB : CACHE INTERNAL "noop for ranlib")
|
||||
ENDIF(NOT CMAKE_RANLIB)
|
||||
|
||||
FIND_PROGRAM(CMAKE_STRIP NAMES ${_CMAKE_TOOLCHAIN_PREFIX}strip HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
FIND_PROGRAM(CMAKE_LINKER NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ld HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
FIND_PROGRAM(CMAKE_NM NAMES ${_CMAKE_TOOLCHAIN_PREFIX}nm HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
FIND_PROGRAM(CMAKE_OBJDUMP NAMES ${_CMAKE_TOOLCHAIN_PREFIX}objdump HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
FIND_PROGRAM(CMAKE_OBJCOPY NAMES ${_CMAKE_TOOLCHAIN_PREFIX}objcopy HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_AR CMAKE_RANLIB CMAKE_STRIP CMAKE_LINKER CMAKE_NM CMAKE_OBJDUMP CMAKE_OBJCOPY)
|
||||
|
||||
ENDIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||
OR "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
|
||||
OR "${CMAKE_GENERATOR}" MATCHES "Visual Studio")
|
||||
|
||||
|
||||
# on Apple there really should be install_name_tool
|
||||
IF(APPLE)
|
||||
FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL NAMES install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||
|
||||
IF(NOT CMAKE_INSTALL_NAME_TOOL)
|
||||
MESSAGE(FATAL_ERROR "Could not find install_name_tool, please check your installation.")
|
||||
ENDIF(NOT CMAKE_INSTALL_NAME_TOOL)
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_INSTALL_NAME_TOOL)
|
||||
ENDIF(APPLE)
|
||||
23
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindCodeBlocks.cmake
vendored
Normal file
23
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindCodeBlocks.cmake
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This file is included in CMakeSystemSpecificInformation.cmake if
|
||||
# the CodeBlocks extra generator has been selected.
|
||||
|
||||
FIND_PROGRAM(CMAKE_CODEBLOCKS_EXECUTABLE NAMES codeblocks DOC "The CodeBlocks executable")
|
||||
|
||||
IF(CMAKE_CODEBLOCKS_EXECUTABLE)
|
||||
SET(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_CODEBLOCKS_EXECUTABLE} <PROJECT_FILE>" )
|
||||
ENDIF(CMAKE_CODEBLOCKS_EXECUTABLE)
|
||||
|
||||
128
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindEclipseCDT4.cmake
vendored
Normal file
128
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindEclipseCDT4.cmake
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This file is included in CMakeSystemSpecificInformation.cmake if
|
||||
# the Eclipse CDT4 extra generator has been selected.
|
||||
|
||||
FIND_PROGRAM(CMAKE_ECLIPSE_EXECUTABLE NAMES eclipse DOC "The Eclipse executable")
|
||||
|
||||
# This variable is used by the Eclipse generator and appended to the make invocation commands.
|
||||
SET(CMAKE_ECLIPSE_MAKE_ARGUMENTS "" CACHE STRING "Additional command line arguments when Eclipse invokes make. Enter e.g. -j<some_number> to get parallel builds")
|
||||
|
||||
# This variable is used by the Eclipse generator in out-of-source builds only.
|
||||
SET(ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT FALSE CACHE BOOL "If enabled, CMake will generate a source project for Eclipse in CMAKE_SOURCE_DIR")
|
||||
MARK_AS_ADVANCED(ECLIPSE_CDT4_GENERATE_SOURCE_PROJECT)
|
||||
|
||||
# The Eclipse generator needs to know the standard include path
|
||||
# so that Eclipse ca find the headers at runtime and parsing etc. works better
|
||||
# This is done here by actually running gcc with the options so it prints its
|
||||
# system include directories, which are parsed then and stored in the cache.
|
||||
MACRO(_DETERMINE_GCC_SYSTEM_INCLUDE_DIRS _lang _resultIncludeDirs _resultDefines)
|
||||
SET(${_resultIncludeDirs})
|
||||
SET(_gccOutput)
|
||||
FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/dummy" "\n" )
|
||||
|
||||
IF (${_lang} STREQUAL "c++")
|
||||
SET(_compilerExecutable "${CMAKE_CXX_COMPILER}")
|
||||
ELSE (${_lang} STREQUAL "c++")
|
||||
SET(_compilerExecutable "${CMAKE_C_COMPILER}")
|
||||
ENDIF (${_lang} STREQUAL "c++")
|
||||
EXECUTE_PROCESS(COMMAND ${_compilerExecutable} -v -E -x ${_lang} -dD dummy
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/CMakeFiles
|
||||
ERROR_VARIABLE _gccOutput
|
||||
OUTPUT_VARIABLE _gccStdout )
|
||||
FILE(REMOVE "${CMAKE_BINARY_DIR}/CMakeFiles/dummy")
|
||||
|
||||
# First find the system include dirs:
|
||||
IF( "${_gccOutput}" MATCHES "> search starts here[^\n]+\n *(.+ *\n) *End of (search) list" )
|
||||
|
||||
# split the output into lines and then remove leading and trailing spaces from each of them:
|
||||
STRING(REGEX MATCHALL "[^\n]+\n" _includeLines "${CMAKE_MATCH_1}")
|
||||
FOREACH(nextLine ${_includeLines})
|
||||
STRING(STRIP "${nextLine}" _includePath)
|
||||
LIST(APPEND ${_resultIncludeDirs} "${_includePath}")
|
||||
ENDFOREACH(nextLine)
|
||||
|
||||
ENDIF( "${_gccOutput}" MATCHES "> search starts here[^\n]+\n *(.+ *\n) *End of (search) list" )
|
||||
|
||||
|
||||
# now find the builtin macros:
|
||||
STRING(REGEX MATCHALL "#define[^\n]+\n" _defineLines "${_gccStdout}")
|
||||
# A few example lines which the regexp below has to match properly:
|
||||
# #define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
# #define __fastcall __attribute__((__fastcall__))
|
||||
# #define FOO (23)
|
||||
# #define __UINTMAX_TYPE__ long long unsigned int
|
||||
# #define __UINTMAX_TYPE__ long long unsigned int
|
||||
# #define __i386__ 1
|
||||
|
||||
FOREACH(nextLine ${_defineLines})
|
||||
STRING(REGEX MATCH "^#define +([A-Za-z_][A-Za-z0-9_]*)(\\([^\\)]+\\))? +(.+) *$" _dummy "${nextLine}")
|
||||
SET(_name "${CMAKE_MATCH_1}${CMAKE_MATCH_2}")
|
||||
STRING(STRIP "${CMAKE_MATCH_3}" _value)
|
||||
#MESSAGE(STATUS "m1: -${CMAKE_MATCH_1}- m2: -${CMAKE_MATCH_2}- m3: -${CMAKE_MATCH_3}-")
|
||||
|
||||
LIST(APPEND ${_resultDefines} "${_name}")
|
||||
IF(_value)
|
||||
LIST(APPEND ${_resultDefines} "${_value}")
|
||||
ELSE()
|
||||
LIST(APPEND ${_resultDefines} " ")
|
||||
ENDIF()
|
||||
ENDFOREACH(nextLine)
|
||||
|
||||
ENDMACRO(_DETERMINE_GCC_SYSTEM_INCLUDE_DIRS _lang)
|
||||
|
||||
# Save the current LC_ALL, LC_MESSAGES, and LANG environment variables and set them
|
||||
# to "C" that way GCC's "search starts here" text is in English and we can grok it.
|
||||
SET(_orig_lc_all $ENV{LC_ALL})
|
||||
SET(_orig_lc_messages $ENV{LC_MESSAGES})
|
||||
SET(_orig_lang $ENV{LANG})
|
||||
IF(_orig_lc_all)
|
||||
SET(ENV{LC_ALL} C)
|
||||
ENDIF(_orig_lc_all)
|
||||
IF(_orig_lc_messages)
|
||||
SET(ENV{LC_MESSAGES} C)
|
||||
ENDIF(_orig_lc_messages)
|
||||
IF(_orig_lang)
|
||||
SET(ENV{LANG} C)
|
||||
ENDIF(_orig_lang)
|
||||
|
||||
# Now check for C, works for gcc and Intel compiler at least
|
||||
IF (NOT CMAKE_ECLIPSE_C_SYSTEM_INCLUDE_DIRS)
|
||||
IF ("${CMAKE_C_COMPILER_ID}" MATCHES GNU OR "${CMAKE_C_COMPILER_ID}" MATCHES Intel)
|
||||
_DETERMINE_GCC_SYSTEM_INCLUDE_DIRS(c _dirs _defines)
|
||||
SET(CMAKE_ECLIPSE_C_SYSTEM_INCLUDE_DIRS "${_dirs}" CACHE INTERNAL "C compiler system include directories")
|
||||
SET(CMAKE_ECLIPSE_C_SYSTEM_DEFINED_MACROS "${_defines}" CACHE INTERNAL "C compiler system defined macros")
|
||||
ENDIF ("${CMAKE_C_COMPILER_ID}" MATCHES GNU OR "${CMAKE_C_COMPILER_ID}" MATCHES Intel)
|
||||
ENDIF (NOT CMAKE_ECLIPSE_C_SYSTEM_INCLUDE_DIRS)
|
||||
|
||||
# And now the same for C++
|
||||
IF (NOT CMAKE_ECLIPSE_CXX_SYSTEM_INCLUDE_DIRS)
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU OR "${CMAKE_CXX_COMPILER_ID}" MATCHES Intel)
|
||||
_DETERMINE_GCC_SYSTEM_INCLUDE_DIRS(c++ _dirs _defines)
|
||||
SET(CMAKE_ECLIPSE_CXX_SYSTEM_INCLUDE_DIRS "${_dirs}" CACHE INTERNAL "CXX compiler system include directories")
|
||||
SET(CMAKE_ECLIPSE_CXX_SYSTEM_DEFINED_MACROS "${_defines}" CACHE INTERNAL "CXX compiler system defined macros")
|
||||
ENDIF ("${CMAKE_CXX_COMPILER_ID}" MATCHES GNU OR "${CMAKE_CXX_COMPILER_ID}" MATCHES Intel)
|
||||
ENDIF (NOT CMAKE_ECLIPSE_CXX_SYSTEM_INCLUDE_DIRS)
|
||||
|
||||
# Restore original LC_ALL, LC_MESSAGES, and LANG
|
||||
IF(_orig_lc_all)
|
||||
SET(ENV{LC_ALL} ${_orig_lc_all})
|
||||
ENDIF(_orig_lc_all)
|
||||
IF(_orig_lc_messages)
|
||||
SET(ENV{LC_MESSAGES} ${_orig_lc_messages})
|
||||
ENDIF(_orig_lc_messages)
|
||||
IF(_orig_lang)
|
||||
SET(ENV{LANG} ${_orig_lang})
|
||||
ENDIF(_orig_lang)
|
||||
32
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindFrameworks.cmake
vendored
Normal file
32
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindFrameworks.cmake
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# - helper module to find OSX frameworks
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2003-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
IF(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)
|
||||
SET(CMAKE_FIND_FRAMEWORKS_INCLUDED 1)
|
||||
MACRO(CMAKE_FIND_FRAMEWORKS fwk)
|
||||
SET(${fwk}_FRAMEWORKS)
|
||||
IF(APPLE)
|
||||
FOREACH(dir
|
||||
~/Library/Frameworks/${fwk}.framework
|
||||
/Library/Frameworks/${fwk}.framework
|
||||
/System/Library/Frameworks/${fwk}.framework
|
||||
/Network/Library/Frameworks/${fwk}.framework)
|
||||
IF(EXISTS ${dir})
|
||||
SET(${fwk}_FRAMEWORKS ${${fwk}_FRAMEWORKS} ${dir})
|
||||
ENDIF(EXISTS ${dir})
|
||||
ENDFOREACH(dir)
|
||||
ENDIF(APPLE)
|
||||
ENDMACRO(CMAKE_FIND_FRAMEWORKS)
|
||||
ENDIF(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)
|
||||
23
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindKDevelop3.cmake
vendored
Normal file
23
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindKDevelop3.cmake
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# This file is included in CMakeSystemSpecificInformation.cmake if
|
||||
# the KDevelop3 extra generator has been selected.
|
||||
|
||||
FIND_PROGRAM(CMAKE_KDEVELOP3_EXECUTABLE NAMES kdevelop DOC "The KDevelop3 executable")
|
||||
|
||||
IF(CMAKE_KDEVELOP3_EXECUTABLE)
|
||||
SET(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_KDEVELOP3_EXECUTABLE} <PROJECT_FILE>" )
|
||||
ENDIF(CMAKE_KDEVELOP3_EXECUTABLE)
|
||||
|
||||
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindWMake.cmake
vendored
Normal file
17
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindWMake.cmake
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2006-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
SET (CMAKE_MAKE_PROGRAM "wmake" CACHE STRING
|
||||
"Program used to build from makefiles.")
|
||||
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
|
||||
20
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindXCode.cmake
vendored
Normal file
20
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFindXCode.cmake
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2005-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
FIND_PROGRAM(CMAKE_MAKE_PROGRAM
|
||||
NAMES xcodebuild
|
||||
PATHS
|
||||
/usr/bin
|
||||
)
|
||||
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
|
||||
82
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeForceCompiler.cmake
vendored
Normal file
82
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeForceCompiler.cmake
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
# This module defines macros intended for use by cross-compiling
|
||||
# toolchain files when CMake is not able to automatically detect the
|
||||
# compiler identification.
|
||||
#
|
||||
# Macro CMAKE_FORCE_C_COMPILER has the following signature:
|
||||
# CMAKE_FORCE_C_COMPILER(<compiler> <compiler-id>)
|
||||
# It sets CMAKE_C_COMPILER to the given compiler and the cmake
|
||||
# internal variable CMAKE_C_COMPILER_ID to the given compiler-id.
|
||||
# It also bypasses the check for working compiler and basic compiler
|
||||
# information tests.
|
||||
#
|
||||
# Macro CMAKE_FORCE_CXX_COMPILER has the following signature:
|
||||
# CMAKE_FORCE_CXX_COMPILER(<compiler> <compiler-id>)
|
||||
# It sets CMAKE_CXX_COMPILER to the given compiler and the cmake
|
||||
# internal variable CMAKE_CXX_COMPILER_ID to the given compiler-id.
|
||||
# It also bypasses the check for working compiler and basic compiler
|
||||
# information tests.
|
||||
#
|
||||
# Macro CMAKE_FORCE_Fortran_COMPILER has the following signature:
|
||||
# CMAKE_FORCE_Fortran_COMPILER(<compiler> <compiler-id>)
|
||||
# It sets CMAKE_Fortran_COMPILER to the given compiler and the cmake
|
||||
# internal variable CMAKE_Fortran_COMPILER_ID to the given compiler-id.
|
||||
# It also bypasses the check for working compiler and basic compiler
|
||||
# information tests.
|
||||
#
|
||||
# So a simple toolchain file could look like this:
|
||||
# INCLUDE (CMakeForceCompiler)
|
||||
# SET(CMAKE_SYSTEM_NAME Generic)
|
||||
# CMAKE_FORCE_C_COMPILER (chc12 MetrowerksHicross)
|
||||
# CMAKE_FORCE_CXX_COMPILER (chc12 MetrowerksHicross)
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2007-2009 Kitware, Inc.
|
||||
#
|
||||
# Distributed under the OSI-approved BSD License (the "License");
|
||||
# see accompanying file Copyright.txt for details.
|
||||
#
|
||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the License for more information.
|
||||
#=============================================================================
|
||||
# (To distribute this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
MACRO(CMAKE_FORCE_C_COMPILER compiler id)
|
||||
SET(CMAKE_C_COMPILER "${compiler}")
|
||||
SET(CMAKE_C_COMPILER_ID_RUN TRUE)
|
||||
SET(CMAKE_C_COMPILER_ID ${id})
|
||||
SET(CMAKE_C_COMPILER_WORKS TRUE)
|
||||
SET(CMAKE_C_COMPILER_FORCED TRUE)
|
||||
|
||||
# Set old compiler id variables.
|
||||
IF("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
|
||||
SET(CMAKE_COMPILER_IS_GNUCC 1)
|
||||
ENDIF("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
|
||||
ENDMACRO(CMAKE_FORCE_C_COMPILER)
|
||||
|
||||
MACRO(CMAKE_FORCE_CXX_COMPILER compiler id)
|
||||
SET(CMAKE_CXX_COMPILER "${compiler}")
|
||||
SET(CMAKE_CXX_COMPILER_ID_RUN TRUE)
|
||||
SET(CMAKE_CXX_COMPILER_ID ${id})
|
||||
SET(CMAKE_CXX_COMPILER_WORKS TRUE)
|
||||
SET(CMAKE_CXX_COMPILER_FORCED TRUE)
|
||||
|
||||
# Set old compiler id variables.
|
||||
IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
SET(CMAKE_COMPILER_IS_GNUCXX 1)
|
||||
ENDIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
ENDMACRO(CMAKE_FORCE_CXX_COMPILER)
|
||||
|
||||
MACRO(CMAKE_FORCE_Fortran_COMPILER compiler id)
|
||||
SET(CMAKE_Fortran_COMPILER "${compiler}")
|
||||
SET(CMAKE_Fortran_COMPILER_ID_RUN TRUE)
|
||||
SET(CMAKE_Fortran_COMPILER_ID ${id})
|
||||
SET(CMAKE_Fortran_COMPILER_WORKS TRUE)
|
||||
SET(CMAKE_Fortran_COMPILER_FORCED TRUE)
|
||||
|
||||
# Set old compiler id variables.
|
||||
IF("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU")
|
||||
SET(CMAKE_COMPILER_IS_GNUG77 1)
|
||||
ENDIF("${CMAKE_Fortran_COMPILER_ID}" MATCHES "GNU")
|
||||
ENDMACRO(CMAKE_FORCE_Fortran_COMPILER)
|
||||
52
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFortranCompiler.cmake.in
vendored
Normal file
52
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFortranCompiler.cmake.in
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
SET(CMAKE_Fortran_COMPILER "@CMAKE_Fortran_COMPILER@")
|
||||
SET(CMAKE_Fortran_COMPILER_ARG1 "@CMAKE_Fortran_COMPILER_ARG1@")
|
||||
SET(CMAKE_Fortran_COMPILER_ID "@CMAKE_Fortran_COMPILER_ID@")
|
||||
SET(CMAKE_Fortran_PLATFORM_ID "@CMAKE_Fortran_PLATFORM_ID@")
|
||||
@SET_MSVC_Fortran_ARCHITECTURE_ID@
|
||||
SET(CMAKE_AR "@CMAKE_AR@")
|
||||
SET(CMAKE_RANLIB "@CMAKE_RANLIB@")
|
||||
SET(CMAKE_COMPILER_IS_GNUG77 @CMAKE_COMPILER_IS_GNUG77@)
|
||||
SET(CMAKE_Fortran_COMPILER_LOADED 1)
|
||||
SET(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
|
||||
SET(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
|
||||
IF(CMAKE_COMPILER_IS_CYGWIN)
|
||||
SET(CYGWIN 1)
|
||||
SET(UNIX 1)
|
||||
ENDIF(CMAKE_COMPILER_IS_CYGWIN)
|
||||
|
||||
SET(CMAKE_Fortran_COMPILER_ENV_VAR "FC")
|
||||
|
||||
SET(CMAKE_Fortran_COMPILER_SUPPORTS_F90 @CMAKE_Fortran_COMPILER_SUPPORTS_F90@)
|
||||
|
||||
IF(CMAKE_COMPILER_IS_MINGW)
|
||||
SET(MINGW 1)
|
||||
ENDIF(CMAKE_COMPILER_IS_MINGW)
|
||||
SET(CMAKE_Fortran_COMPILER_ID_RUN 1)
|
||||
SET(CMAKE_Fortran_SOURCE_FILE_EXTENSIONS f;F;f77;F77;f90;F90;for;For;FOR;f95;F95)
|
||||
SET(CMAKE_Fortran_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
SET(CMAKE_Fortran_LINKER_PREFERENCE 20)
|
||||
IF(UNIX)
|
||||
SET(CMAKE_Fortran_OUTPUT_EXTENSION .o)
|
||||
ELSE(UNIX)
|
||||
SET(CMAKE_Fortran_OUTPUT_EXTENSION .obj)
|
||||
ENDIF(UNIX)
|
||||
|
||||
# Save compiler ABI information.
|
||||
SET(CMAKE_Fortran_SIZEOF_DATA_PTR "@CMAKE_Fortran_SIZEOF_DATA_PTR@")
|
||||
SET(CMAKE_Fortran_COMPILER_ABI "@CMAKE_Fortran_COMPILER_ABI@")
|
||||
SET(CMAKE_Fortran_LIBRARY_ARCHITECTURE "@CMAKE_Fortran_LIBRARY_ARCHITECTURE@")
|
||||
|
||||
IF(CMAKE_Fortran_SIZEOF_DATA_PTR AND NOT CMAKE_SIZEOF_VOID_P)
|
||||
SET(CMAKE_SIZEOF_VOID_P "${CMAKE_Fortran_SIZEOF_DATA_PTR}")
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_Fortran_COMPILER_ABI)
|
||||
SET(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_Fortran_COMPILER_ABI}")
|
||||
ENDIF(CMAKE_Fortran_COMPILER_ABI)
|
||||
|
||||
IF(CMAKE_Fortran_LIBRARY_ARCHITECTURE)
|
||||
SET(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_Fortran_LIBRARY_ARCHITECTURE@")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "@CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES@")
|
||||
SET(CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES "@CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES@")
|
||||
33
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFortranCompilerABI.F
vendored
Normal file
33
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFortranCompilerABI.F
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
PROGRAM CMakeFortranCompilerABI
|
||||
#if 0
|
||||
! Address Size
|
||||
#endif
|
||||
#if defined(_LP64)
|
||||
PRINT *, 'INFO:sizeof_dptr[8]'
|
||||
#elif defined(_M_IA64)
|
||||
PRINT *, 'INFO:sizeof_dptr[8]'
|
||||
#elif defined(_M_X64)
|
||||
PRINT *, 'INFO:sizeof_dptr[8]'
|
||||
#elif defined(_M_AMD64)
|
||||
PRINT *, 'INFO:sizeof_dptr[8]'
|
||||
|
||||
#elif defined(_ILP32)
|
||||
PRINT *, 'INFO:sizeof_dptr[4]'
|
||||
#elif defined(_M_IX86)
|
||||
PRINT *, 'INFO:sizeof_dptr[4]'
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
! Application Binary Interface
|
||||
#endif
|
||||
#if defined(__sgi) && defined(_ABIO32)
|
||||
PRINT *, 'INFO:abi[ELF O32]'
|
||||
#elif defined(__sgi) && defined(_ABIN32)
|
||||
PRINT *, 'INFO:abi[ELF N32]'
|
||||
#elif defined(__sgi) && defined(_ABI64)
|
||||
PRINT *, 'INFO:abi[ELF 64]'
|
||||
#elif defined(__ELF__)
|
||||
PRINT *, 'INFO:abi[ELF]'
|
||||
#endif
|
||||
PRINT *, 'ABI Detection'
|
||||
END
|
||||
123
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFortranCompilerId.F.in
vendored
Normal file
123
extern/cmake/2.85/share/cmake-2.8/Modules/CMakeFortranCompilerId.F.in
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
PROGRAM CMakeFortranCompilerId
|
||||
#if 0
|
||||
! Identify the compiler
|
||||
#endif
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
PRINT *, 'INFO:compiler[Intel]'
|
||||
#elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95)
|
||||
PRINT *, 'INFO:compiler[SunPro]'
|
||||
#elif defined(_CRAYFTN)
|
||||
PRINT *, 'INFO:compiler[Cray]'
|
||||
#elif defined(__G95__)
|
||||
PRINT *, 'INFO:compiler[G95]'
|
||||
#elif defined(__PATHSCALE__)
|
||||
PRINT *, 'INFO:compiler[PathScale]'
|
||||
#elif defined(__ABSOFT__)
|
||||
PRINT *, 'INFO:compiler[Absoft]'
|
||||
#elif defined(__GNUC__)
|
||||
PRINT *, 'INFO:compiler[GNU]'
|
||||
#elif defined(__IBMC__)
|
||||
# if defined(__COMPILER_VER__)
|
||||
PRINT *, 'INFO:compiler[zOS]'
|
||||
# elif __IBMC__ >= 800
|
||||
PRINT *, 'INFO:compiler[XL]'
|
||||
# else
|
||||
PRINT *, 'INFO:compiler[VisualAge]'
|
||||
# endif
|
||||
#elif defined(__PGI)
|
||||
PRINT *, 'INFO:compiler[PGI]'
|
||||
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
|
||||
PRINT *, 'INFO:compiler[MIPSpro]'
|
||||
# if 0
|
||||
! This compiler is either not known or is too old to define an
|
||||
! identification macro. Try to identify the platform and guess that
|
||||
! it is the native compiler.
|
||||
# endif
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
PRINT *, 'INFO:compiler[VisualAge]'
|
||||
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
|
||||
PRINT *, 'INFO:compiler[MIPSpro]'
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
PRINT *, 'INFO:compiler[HP]'
|
||||
#elif 1
|
||||
# if 0
|
||||
! The above 'elif 1' instead of 'else' is to work around a bug in the
|
||||
! SGI preprocessor which produces both the __sgi and else blocks.
|
||||
# endif
|
||||
PRINT *, 'INFO:compiler[]'
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
! Identify the platform
|
||||
#endif
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
PRINT *, 'INFO:platform[Linux]'
|
||||
#elif defined(__CYGWIN__)
|
||||
PRINT *, 'INFO:platform[Cygwin]'
|
||||
#elif defined(__MINGW32__)
|
||||
PRINT *, 'INFO:platform[MinGW]'
|
||||
#elif defined(__APPLE__)
|
||||
PRINT *, 'INFO:platform[Darwin]'
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
PRINT *, 'INFO:platform[Windows]'
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
PRINT *, 'INFO:platform[FreeBSD]'
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
PRINT *, 'INFO:platform[NetBSD]'
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
PRINT *, 'INFO:platform[OpenBSD]'
|
||||
#elif defined(__sun) || defined(sun)
|
||||
PRINT *, 'INFO:platform[SunOS]'
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
PRINT *, 'INFO:platform[AIX]'
|
||||
#elif defined(__sgi) || defined(__sgi__) || defined(_SGI)
|
||||
PRINT *, 'INFO:platform[IRIX]'
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
PRINT *, 'INFO:platform[HP-UX]'
|
||||
#elif defined(__HAIKU) || defined(__HAIKU__) || defined(_HAIKU)
|
||||
PRINT *, 'INFO:platform[Haiku]'
|
||||
# if 0
|
||||
! Haiku also defines __BEOS__ so we must
|
||||
! put it prior to the check for __BEOS__
|
||||
# endif
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
PRINT *, 'INFO:platform[BeOS]'
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
PRINT *, 'INFO:platform[QNX]'
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
PRINT *, 'INFO:platform[Tru64]'
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
PRINT *, 'INFO:platform[RISCos]'
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
PRINT *, 'INFO:platform[SINIX]'
|
||||
#elif defined(__UNIX_SV__)
|
||||
PRINT *, 'INFO:platform[UNIX_SV]'
|
||||
#elif defined(__bsdos__)
|
||||
PRINT *, 'INFO:platform[BSDOS]'
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
PRINT *, 'INFO:platform[MP-RAS]'
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
PRINT *, 'INFO:platform[OSF1]'
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
PRINT *, 'INFO:platform[SCO_SV]'
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
PRINT *, 'INFO:platform[ULTRIX]'
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
PRINT *, 'INFO:platform[Xenix]'
|
||||
#elif 1
|
||||
# if 0
|
||||
! The above 'elif 1' instead of 'else' is to work around a bug in the
|
||||
! SGI preprocessor which produces both the __sgi and else blocks.
|
||||
# endif
|
||||
PRINT *, 'INFO:platform[]'
|
||||
#endif
|
||||
#if defined(_WIN32) && (defined(__INTEL_COMPILER) || defined(__ICC))
|
||||
# if defined(_M_IA64)
|
||||
PRINT *, 'INFO:arch[IA64]'
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
PRINT *, 'INFO:arch[x64]'
|
||||
# elif defined(_M_IX86)
|
||||
PRINT *, 'INFO:arch[X86]'
|
||||
# endif
|
||||
#endif
|
||||
END
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user