commit
a5b7b94ef4
@ -1,582 +1,94 @@
|
||||
Changes in CMake 2.6.4 RC 6
|
||||
- Use $ var in CPack.cmake, and not @var@
|
||||
- Add more missing OSXX11 CPack files
|
||||
|
||||
Changes in CMake 2.6.4 RC 5
|
||||
- Add missing file for OSXX11 CPack generator
|
||||
- cmake-gui fix path length in the binary directory's combo box
|
||||
|
||||
Changes in CMake 2.6.4 RC 4
|
||||
- Better document Verbatim in custom commands
|
||||
- Fix #8843 ctest system information was not always correct on linux
|
||||
- Fix transitive linking of imported libraries
|
||||
|
||||
Changes in CMake 2.6.4 RC 3
|
||||
- Documentation fix for #8815
|
||||
- Fix CDash only submit with ctest_submit
|
||||
- various fixes for FindQt4.cmake
|
||||
- cmake-gui block checkable flag for item during configure/generate.
|
||||
- put qt version in about for cmake-gui
|
||||
|
||||
Changes in CMake 2.6.4 RC 2
|
||||
- Fix issues in FindBoost #8576 #8734
|
||||
- Fix -D issues with VS 6
|
||||
- Fix scope issue with CMAKE_CURRENT_LIST_FILE and macros
|
||||
- Eclipse make VERBOSE off in makfiles #7585, and use built-in includes
|
||||
- Codeblocks auto header finding
|
||||
- Fix crash in include_directories #8704
|
||||
- Some documentation fixes to commands and classes.
|
||||
- Do not warn if LIBPATH is not set for nmake
|
||||
|
||||
Changes in CMake 2.6.4 RC 1
|
||||
- Add some better documentation about RPATH variables
|
||||
- No longer mark header files as HEADER_FILE_ONLY automatically,
|
||||
this gets rid of the ugly red marks in Visual Stuido
|
||||
- Fix man-page preformatted text paragraphing
|
||||
- Teach file(REMOVE) how to use relative paths
|
||||
- Gracefully handle broken version symlinks
|
||||
- Fix ASM source file extension default list
|
||||
- Pass shared library export symbol in DEFINES
|
||||
- Enforce unique binary directories
|
||||
- Fix cmake-mode.el indentation cursor motion
|
||||
- Simplify reverse cmLocalGenerator::Convert
|
||||
- More robust decision to suppress implicit include dirs
|
||||
- Fix Fortran implicit dependency include path (and test it)
|
||||
- Clarify docs of old *_OUTPUT_PATH vars
|
||||
- Fix svn update logic for modified files
|
||||
- Add get_filename_component(... REALPATH)
|
||||
- Work around broken GetLongPathName case
|
||||
|
||||
Changes in CMake 2.6.3 RC 17 - 15
|
||||
- Fix Xcode rebuild issue with static libraries and add a test.
|
||||
|
||||
Changes in CMake 2.6.3 RC 15
|
||||
- Fix Xcode rebuild issue with static libraries
|
||||
|
||||
Changes in CMake 2.6.3 RC 14
|
||||
- Take cmake-gui out of beta for windows installer
|
||||
|
||||
Changes in CMake 2.6.3 RC 13
|
||||
- Fix cmake can not find cmake when run on windows from PATH
|
||||
- Fix #8378 FILEPATH cache UNC paths in list removed extra /
|
||||
- Update FindBoost to reflect #8378 fix
|
||||
- More FindQt4 fixes
|
||||
|
||||
Changes in CMake 2.6.3 RC 12
|
||||
- Fix bug #8465 MACOSX_BUNDLE triggers re-configuration after build
|
||||
- Add support for building with Qts ActiveX
|
||||
|
||||
Changes in CMake 2.6.3 RC 11
|
||||
- Fix old-style install to prefix top
|
||||
- Fix Docs for relative paths in link_directories
|
||||
- Fix OS X dylib version flags for more linkers
|
||||
- Add some extra search paths for Haiku
|
||||
- Fix FindDoxygen not respecting QUIET and REQUIRED
|
||||
- Fix FindGDAL, FindLua50 FindLua51 FindMPEG2
|
||||
- add FindOpenSceneGraph.cmake
|
||||
- Fixes for FindOSG
|
||||
- Fix FindQt4 find .moc files if there are spaces between # and include#8433.
|
||||
- Change haiku to use dlopen functions and not BEOS stuff
|
||||
|
||||
Changes in CMake 2.6.3 RC 10
|
||||
- Fix issue #7470. Allow spaces in the path names for CPack NSIS.
|
||||
- Fix crash with set properties and empty values
|
||||
- Enforce matching cmake_policy push/pop scope in scripts
|
||||
- Document find_package refind
|
||||
- add unset command
|
||||
- add/fix many osg modules
|
||||
- Fixes for FindBoost.cmake
|
||||
- Fixes for FindDoxygen.cmake
|
||||
- Fixes for FindFLTK.cmake
|
||||
- Fix endif in FindKDE4.cmake
|
||||
- Fix HEADER_FILE_ONLY with VS and midl files #7845
|
||||
- Add #7833 changes to support OSXX11 file associations
|
||||
- Fix target ordering in VS IDE solution files
|
||||
- Fix LOCATION property for Mac App Bundle targets
|
||||
- Better diagnosis of mismatching logical blocks
|
||||
- Improve scoping of policies (see cmake_policy and CMP0011)
|
||||
|
||||
Changes in CMake 2.6.3 RC 9
|
||||
- Fix borland 55 build
|
||||
- Pop a function scope even on error
|
||||
- Provide variable CMAKE_VERSION
|
||||
|
||||
Changes in CMake 2.6.3 RC 8
|
||||
- CMAKE_VERBOSE_MAKEFILE fix for KDevelop3
|
||||
- FindGettext.cmake fix #8122
|
||||
- FindPythonInterp.cmake find python 2.6 on windows
|
||||
- cmake_minimum_required forward compatibility
|
||||
- Fix (#7289) in cmDocumentationFormatterDocbook.cxx
|
||||
- Fix #8203: codeblocks + mingw quoting issue
|
||||
- Clean per-config export files during install
|
||||
- Bug fixes for Eclipse CDT4 generator
|
||||
- find_package refind when previously found file is removed
|
||||
- Support '-' in target names for VS6
|
||||
- Fix component-name test on installation
|
||||
- Warn when build directory is too long
|
||||
- Fix set cache FORCE and -D command line to work together
|
||||
- Enable LOCATION property for imported targets
|
||||
- Allow cmake-gui to be built by cmake 2.4
|
||||
- Fix installation from read-only source file
|
||||
- Fix for rc and vs6 -D flags
|
||||
- Create DEBUG_CONFIGURATIONS global property
|
||||
|
||||
Changes in CMake 2.6.3 RC 7
|
||||
- Add both 32/64-bit Program Files as windows paths
|
||||
- Fix potential crash with ctest and log being null
|
||||
|
||||
Changes in CMake 2.6.3 RC 6
|
||||
- Fix project(foo NONE) enable c later bug on OSX
|
||||
- Fix Haiku default paths
|
||||
- RPM Update generator to handle optional dependencies using Requires
|
||||
- Fix FindCurses for Haiku
|
||||
- Look for doxygen in more places
|
||||
- Look for different expat names on windows
|
||||
- FindLibxml2 use FindPkgConfig.cmake instead of UsePkgConfig.cmake,
|
||||
- Add translations support to FindQt4.cmake
|
||||
- FindWxWidgets Fixed placement of initial wxWidgets_FOUND=TRUE
|
||||
- Fix GetPrerequisites.cmake to work with 0 libs
|
||||
- Add support for Squish
|
||||
- Make bundle startup optional in bundle generator
|
||||
- Fix runtime search path ordering with symlinks (fix from RC4)
|
||||
- Fix escaping of empty custom command argument on Windows
|
||||
- Teach find_package more config file locations
|
||||
- Fix scope of find_package definitions in find-modules
|
||||
- Teach find_package to push/pop policies for version files
|
||||
|
||||
Changes in CMake 2.6.3 RC 5
|
||||
- add EXCLUDE, INCLUDE to ctest_test command in ctest -S scripts
|
||||
- Set CMAKE_SYSTEM in ctest -S scripts by reading CMakeDetermineSystem
|
||||
- Fix for GetLibraryNamesInternal called on imported target issue on osx
|
||||
- Add FortranCInterface.cmake module to discover Fortran/C interfaces
|
||||
- Fix Fortran compiler specified with -D issue
|
||||
- Add support for the MS masm and masm64 assemblers, works with nmake/make
|
||||
- Improvments to FindQt4.cmake
|
||||
- InstallRequiredSystemLibraries fix for win64
|
||||
- Fix flags for Sun Fortran, and g77
|
||||
- Fix imported library issue with OSX
|
||||
- Fix -D and CACHE FORCE issue
|
||||
- Have kwsys submit dashboards to cdash.org
|
||||
|
||||
Changes in CMake 2.6.3 RC 4
|
||||
- Fix for SccProvider in visual studio
|
||||
- fix for missing package_source target
|
||||
- FindQt4 QT_PHONON_MODULE_DEPENDS fixes
|
||||
- Fixes for GetPrerequisites.cmake system libraries on Mac and UNIX
|
||||
- Merge in kwsys Haiku DynaimcLoader change
|
||||
Changes in CMake 2.6.3 RC 3
|
||||
- Merge in CMakeLists.txt curl Haiku change
|
||||
Changes in CMake 2.6.3 RC 2
|
||||
- Merge in more Haiku changes
|
||||
Changes in CMake 2.6.3 RC 1
|
||||
- Better reporting when nmake compiler environment is not correct
|
||||
- Fix bug #5936 set locale when running cvs and svn
|
||||
- Teach find_library to find OpenBSD-style libs (issue #3470).
|
||||
- Fix lib/ to lib/64/ search path conversion
|
||||
- Fix CPack DESTDIR issue
|
||||
- Support longer command lines with windows nmake and make
|
||||
- Fix bug with color check for dependency scanning
|
||||
- Use new link info during dependency scanning
|
||||
- Fix find_* search order with path suffixes
|
||||
- Fix install with multiple configurations and makefiles.
|
||||
- Improve find_package interface for recursive find modules.
|
||||
- Fix build issues with older visual studio versions
|
||||
- Fix Xcode release builds
|
||||
- Put custom target sources in Xcode projects
|
||||
- Fix return value from cmake -E time commands
|
||||
- Fix documentation for cmake --debug-trycompile
|
||||
- Add Haiku support
|
||||
- Fix bug, allow enable_language to be called for C after CXX
|
||||
- Add FindCoin3D.cmake
|
||||
- Fix bug in FindGLUT.cmake
|
||||
- Better find of perl in FindPerlLibs.cmake
|
||||
- FindQt4 Fix #7784, Fix #7433
|
||||
- FindQt4 refind qt when qmake changes
|
||||
- Fix to find wxWidgets_LIB_DIR for windows platform more generally.
|
||||
- Find ttkstup in FindTclStub.cmake
|
||||
- Skip a command if its arguments fail to parse
|
||||
- Fix convenience rule working directory
|
||||
- Add support for source code control and visual stuido
|
||||
- Add parenthetical expressions to if
|
||||
- Fix Rc command with -D options and nmake
|
||||
- Fix NSIS detection on windows 2000
|
||||
- Display an error message in ccmake when there are errors
|
||||
|
||||
CMake 2.6.2 released
|
||||
|
||||
Changes in CMake 2.6.2 RC 6
|
||||
- Fix bug#7669 cpack did not work when sym-linked after install
|
||||
|
||||
Changes in CMake 2.6.2 RC 5
|
||||
- Add beta BundleUtilities.cmake file
|
||||
- CPackRPM 7435 fixes to add optional post-install
|
||||
- Fix Bug #7456, FindBoost versioned find not working
|
||||
- Fix FindCurses to be able to work without ncurses.h
|
||||
- FindQt4 fix bug #7433, add a bit more documentation and add ability
|
||||
to specify extra flags to lupdate.
|
||||
|
||||
Changes in CMake 2.6.2 RC 4
|
||||
- Fix bug #7359 make llvm-gcc work, by explicitely excluding
|
||||
"llvm-" from _CMAKE_TOOLCHAIN_PREFIX
|
||||
- Fix bug 7046: OS X Framework support: extensionless headers were
|
||||
being ignored when specified as public headers
|
||||
- Fix documentation in CheckCCompilerFlag.cmake
|
||||
- Add better version support to find_package command
|
||||
- Fix Xcode debug not working
|
||||
- Add VERSION compare to if command
|
||||
- Make FindThreads sete THREADS_FOUND
|
||||
- Deb cpack generator sets Installed-Size for the package
|
||||
- Do not add an empty /D"" at the end of VS 6 .dsp compile lines
|
||||
- Recognize /MAP in VS 7 and greater
|
||||
- Add new policy CMP0009 - GLOB_RECURSE should not follow symlinks by default
|
||||
|
||||
Changes in CMake 2.6.2 RC 3
|
||||
- Fix bug, and remove extra closing > in visual fortran projects.
|
||||
- Fix bug in ctest -C where it was sometimes ignored.
|
||||
- Fix crash with exec_process when cmake is being debugged on windows
|
||||
- Fix unsetting of global properties
|
||||
|
||||
Changes in CMake 2.6.2 RC 2
|
||||
- allow tool chains to limit object path length
|
||||
- add info.plist to frameworks
|
||||
- better preservation of user link lines
|
||||
- add a get command for cmake policies
|
||||
- support for imported libraries of unknown type
|
||||
- support link interface in target_link_libraries
|
||||
- Do not hang when select lies
|
||||
- .m compiled with gcc and g++ on mac
|
||||
- Fix issue when application bundle dir is removed cmake
|
||||
needs to re-run automatically
|
||||
- Report an error when configure has one error
|
||||
- Fix bug where -E commands stole command line options
|
||||
- Fix infinite recursion bug with try-compile and change of compilers
|
||||
- Fix delete and backspace in ccmake
|
||||
- Fix coverage not to follow symlinks
|
||||
- Add more possible languages for NSIS in cpack
|
||||
- FindQt4.cmake fix bug #7433, add documentation that
|
||||
directories also can be specified to update the translation files.
|
||||
- Add standard arg handling to FindPHP4.cmake
|
||||
- Add X11R6 to search path for FindOpenGL
|
||||
- update cmake-syntax.vim to have more keywords
|
||||
- BUG: fix #7477, set VERBOSE=1 in the kdevelop setting for
|
||||
the environment, not together with the make executable
|
||||
- UsePkgConfig.cmake - clean up, add a status message in case
|
||||
pkgconfig didn't find the package, sync with kde
|
||||
- FindX11 look in more places
|
||||
- FindTIFF look for more names
|
||||
- FindQt3, make sure qt4 is not found and some style stuff
|
||||
- FindPNG add more names of linpng (sync with the KDE version)
|
||||
- FindKDE3/KDE4 sanity checks on qt versions found
|
||||
- FindLibXMl2 also search for xmllint, which comes with libxml2
|
||||
(sync with FindLibXml2.cmake from KDE)
|
||||
- Fix sizeof, and other compiler INFO string checks with
|
||||
GNU linker's --gc-sections
|
||||
- Fix bogus dependency on executable targets when a linked library
|
||||
happended to match the name of an executable target
|
||||
- Improve readability of circular depends error
|
||||
- Fix crash on circular target dependencies
|
||||
- find_package now knows about lib64 paths
|
||||
- Fix gentoo elf security issue with RPATH and RUNPATH
|
||||
|
||||
Changes in CMake 2.6.2 RC 1
|
||||
- Fix abort in eclipse generator with empty EXECUTABLE_OUTPUT_PATH
|
||||
- Fix FindKDE3.cmake syntax error
|
||||
- Fix custom command output by relative path not always working
|
||||
- Fix bug, Do not convert RPATH entries to full path.
|
||||
- Allow for "$ORIGIN" into the RPATH>
|
||||
- Allow for static libraries with lots of objects using archive append
|
||||
- Fix documentation for FindImageMagick.cmake
|
||||
- Fix link error with MS compiler and comdef
|
||||
- Fix crash when attempting to load the RPATH out of a non-ELF file
|
||||
- Add --trace option to cmake allowing for the tracing of a cmake run
|
||||
- Fix for issue #4971 where the case of the drive letter component of
|
||||
the filenames might be different when analyzing gcov output.
|
||||
- Add warning level W0 to visual studio
|
||||
- Add support for OSX library version flags
|
||||
|
||||
Changes in CMake 2.6.1 RC 16
|
||||
- Fix for bug 7427, preinstall target name hard coded
|
||||
- Fix issue #7088 - do not emit error messages when attempts to run
|
||||
Visual Studio macros fail. You can still get the error output
|
||||
as messages if you want using --debug-output from the cmake command line.
|
||||
- Fix InstallRequiredSystemLibraries.cmake to work with win64
|
||||
|
||||
Changes in CMake 2.6.1 RC 15
|
||||
- Fix bug 7426 FindJPEG module causes error when setting JPEG_LIBRARY to blank
|
||||
- Fix bug 7414 PackageMaker generator crashes when given components
|
||||
with circular dependencies
|
||||
- Fix source files to not add extra /, and look for extensions for
|
||||
all enabled languages.
|
||||
- Change link line to preserve input given to target_link_libraries even
|
||||
if a shared library is repeated.
|
||||
- Fix for bug 7421, fortran did not get arch flags on the mac
|
||||
- For CMP0008 do not depend on the files that are not there, which
|
||||
makes the Xcode generator delete executables after they are built.
|
||||
- Work around Boost 1.36.0 bug fix on Darwin by setting the mangled
|
||||
compiler name to -xgccVERSION
|
||||
- Updated FindImageMagick to:
|
||||
- Find newer additions such as animate, compare, etc.
|
||||
- Find development api: Magick++, MagickCore, MagickWand
|
||||
- Use FindPackageHandleStandardArgs to output standard messages.
|
||||
|
||||
Changes in CMake 2.6.1 RC 14
|
||||
- Change dashboard submission to go directly to CDash.
|
||||
- Add policy CMP0008- Full-path libraries must be a valid library file name
|
||||
|
||||
Changes in CMake 2.6.1 RC 12
|
||||
- More find locations for FindJNI.
|
||||
- Fix bug with source files ending in .l and .l.cpp, causing cmake
|
||||
to think they were the same file in some cases.
|
||||
- Fix issue with .lib being seen as .obj with VS due to a full path
|
||||
to a library given without the file extension. This only worked
|
||||
with the VS generator, but some projects had worked around it with
|
||||
if statements. It now issues a warning, but should link.
|
||||
- Update cpack stuff for beta OSX bundle generator for CPack
|
||||
- CheckFortranFunctionExists.cmake now calls the function.
|
||||
- FindBLAS.cmake, FindLAPACK.cmake modules were redesigned so
|
||||
now you have three new variables BLA_VENDOR (you can specify the VENDOR),
|
||||
BLA_STATIC (gets the static version of libs), BLA_F95
|
||||
(gets the fortran 95 interface). BLA_VENDOR can be specified as
|
||||
an environment variable. Intel mkls libs need FindThreads to
|
||||
be found correctly so you will need to enable the C/CXX
|
||||
- FindMPI: Use the HINTS feature of find_library to find the right
|
||||
libraries for MPI, and act a bit more intelligently when MPI cannot be found.
|
||||
- Improved support for finding wxWidgets in MinGW environment.
|
||||
- CMAKE[_SYSTEM]_(LIBRARY|PROGRAM|INCLUDE|PREFIX)_PATH variables
|
||||
moved CMAKE_CROSSCOMPILING from "Variables that modify behaviour" to
|
||||
"variables that Provide Information"
|
||||
- handle HTML documentation for single items better: no warning about
|
||||
ComputeSectionLinkPrefix, don't create an index for only one item.
|
||||
- Better error messages in CPackBundleGenerator
|
||||
|
||||
Changes in CMake 2.6.1 RC 11
|
||||
- Fix curl build issue with Xcode 3.1
|
||||
Changes in CMake 2.6.1 RC 10
|
||||
- Add a fix for bug # 7340, CMAKE_USER_MAKE_RULES_OVERRIDE was
|
||||
not able to support a try-compile in cmake 2.6
|
||||
- Remove bad test for bug # 7316
|
||||
Changes in CMake 2.6.1 RC 9
|
||||
- Fix bug # 7316 Xcode double escaped define strings
|
||||
- FindBoost can now find the upcoming Boost 1.36
|
||||
Changes in CMake 2.6.1 RC 8
|
||||
- Fix build problem with missing cpack file
|
||||
|
||||
Changes in CMake 2.6.1 RC 7
|
||||
- More fixes for CPack components functionality
|
||||
- Fixes for Xcode generater #7277 #7044, do not compile foo.txt.
|
||||
Rebuild application bundles when a library changes. Set the project
|
||||
location for Xcode 3.1
|
||||
- Do not automatically add EXECUTABLE_OUTPUT_PATH to cache.
|
||||
- New tree view in cmake-gui
|
||||
- FindBoost.cmake, find boost as installed by the BoostPro/Boost Consulting
|
||||
installers on Windows. And cleanup FindBoost module, fixing several small
|
||||
bugs and providing better diagnostic information when things go wrong.
|
||||
- Fix FindwxWidgets.cmake to find richtext library
|
||||
- Fix FindQt4.cmake with empty qconfig.pri files. Fixes #7287.
|
||||
- Fix add/remove program version string again...
|
||||
- Fix column width in cmake-gui
|
||||
|
||||
Changes in CMake 2.6.1 RC 6
|
||||
- Fix DEFINITIONS property to be compatible with 2.4
|
||||
- Fix escaping of $ for visual studio
|
||||
- FindGettext.cmake fix bug #7230: don't ignore first parameter if it's not ALL
|
||||
Changes in CMake 2.6.1 RC 5
|
||||
- Add support for component based packages in cpack.
|
||||
- Fix FindBLAS.cmake if no fortran compiler is found
|
||||
- Fix FindFLTK.cmake to pass new module test
|
||||
- Fix FindKDE3.cmake to not add flags if kde3 is not found
|
||||
- Fix FindMatlab.cmake, FindOpenSSL.cmake, FindQt3.cmake,
|
||||
FindSWIG.cmake, to only error if it is required
|
||||
- Fix FindwxWidgets.cmake to work on msys
|
||||
- Add a beta OSX bundle generator for CPack
|
||||
- Fix bug in cmake --build-and-test where cmake output was lost
|
||||
- Fix ctest handling of CDash dart measurement support
|
||||
- Add a group view to cmake-gui
|
||||
- Fix nmake/make with visual studio compiler to handle long link lines
|
||||
- Fix FLTK_WRAP_UI to better notice when mistakes are made with the target name
|
||||
- Fix spelling error EnableFiberSafeOptimizations
|
||||
|
||||
Changes in CMake 2.6.1 RC 4
|
||||
- Change to find_*, a new HINTS keyword was added to avoid the
|
||||
need for NO_DEFAULT_PATH, and a repeated call to find_*
|
||||
- Update all NO_DEFAULT_PATH usage in Modules/Find*
|
||||
- Fix for cpack self extracting .sh files to work with more shells
|
||||
- FindQt4 now finds dependencies for some qt modules
|
||||
- ctest cpu information fixes for cygwin and linux
|
||||
- Recognize more color terminals for color output
|
||||
- Remove SKIP_RULE_DEPENDS from custom command because CMake
|
||||
now can detect when a cutom command actually changes and only
|
||||
re-run the rule then. This fixes the problem of custom commands
|
||||
re-running every time a file is added to a target.
|
||||
- Fix for very slow find_path on OSX because of framework searchs
|
||||
- Fix for bug 6364, extra help targets when there are subdirectories
|
||||
of the top level.
|
||||
- Fix for Xcode generator to not eat some flags by mistake.
|
||||
- Add end of file checking for close if, foreach, macro, functions
|
||||
etc enabled.
|
||||
|
||||
Changes in CMake 2.6.1 RC 3
|
||||
- FindQt4 - Find qt debug libraries on windows with d postfix.
|
||||
- Find 64 bit windows registry stuff with 32 bit cmake
|
||||
- Give a message if rpath is changed during install
|
||||
- rpath changer during install understands symlinks now
|
||||
- If a source file is not found and is a full path cmake complains.
|
||||
|
||||
Changes in CMake 2.6.1 RC 2
|
||||
|
||||
- FindQt4 - report an error when trying to use MSVC with Qt built by mingw.
|
||||
- FindQt4 - make Qt not found if the QtCore library can't be found.
|
||||
- UseQt4 - only add flags for modles that are used
|
||||
- Log file and LC_ALL fix for FindSubversion
|
||||
- Make MacOSXBundleInfo.plist.in a configured file again
|
||||
- Fix makefile generator targets to depend on full path link libraries
|
||||
- Allow CMakeImportBuildSettings to not match tools if
|
||||
CMAKE_OVERRIDE_COMPILER_MISMATCH is set
|
||||
- Fix incorrect extension extraction in gcc cross compiler check
|
||||
- Add support for Portand Fortran
|
||||
- Fix list command with empty list values
|
||||
- Add support for setting compiler and toolchain in qt cmake-gui
|
||||
- Fix Bug 7011, FindQt4 was slow on a mac, find_path should not glob in /
|
||||
- Fix install directories for cygwin package of CMake
|
||||
|
||||
Changes in CMake 2.6.1 RC 1
|
||||
- Add a way to modify depend scanning with the property:
|
||||
IMPLICIT_DEPENDS_INCLUDE_TRANSFORM
|
||||
- Add a way for custom commands to skip depending on the rule.make file
|
||||
- Fix ENABLE_LANGUAGE(ASM-ATT OPTIONAL) to work
|
||||
- Fix gcov in ctest in French or other non-English runs
|
||||
- Fix help for ctest commands to be lower case
|
||||
- Find QtCLucene on Qt/Mac binary
|
||||
- Fix for build on ARM
|
||||
- Fix for docbook to add newlines
|
||||
- Fix -Wno-dev to not eat path to source tree
|
||||
- Fix bug in NSIS CPack where CPACK_NSIS_MODIFY_PATH did modify the path
|
||||
- Fix FindBoost version variable names to correct bug in Boost version
|
||||
- Fix Add/Remove program name for CMake install on windows
|
||||
- Fix bug 0006988 coverage not reported on dashboards
|
||||
- Fix bug 0006990 CMake crashes with bad input to set_source_files_properties
|
||||
- Fix bug in FindCurses where you could not run cmake twice
|
||||
- Fix 64 bit cmake creation of Xcode projects
|
||||
- Add --help-policy to --help
|
||||
|
||||
Changes in CMake 2.6.0
|
||||
- Fix links in generated documentation
|
||||
- Fix for FindQt and some mac frameworks
|
||||
- Fix for ctest to report more than 2 gigs system memory on windows
|
||||
- Fix CTest build name for vs 9, and fix memory size on windows
|
||||
Changes in CMake 2.6.0 RC 10
|
||||
- Do not duplicate .so libraries on the link line
|
||||
- Add more system library paths to sun builds
|
||||
- Add BETA support for Intel Fortran IDE files in visual studio
|
||||
- Fix FindCurses to work if ncurses is the only option
|
||||
- Fix shell escapes on some systems
|
||||
- Remove check for file write as input to cmake, as it is no longer needed
|
||||
- Make check_type_size automatically check for headers that it uses
|
||||
- Remove minimum required from FindBoost.cmake
|
||||
- Fix FindSDL so that it can be run more than once
|
||||
- Fix find required for VTK package
|
||||
- Allow for CMAKE_OSX_SYSROOT to work with single architecture
|
||||
- Add context information when a source file cannot be found.
|
||||
- Report the directory-level context even if no list file
|
||||
is currently being processed.
|
||||
|
||||
Changes in CMake 2.6.0 RC 9
|
||||
|
||||
- Fix for fortran mod:: support
|
||||
- Fix bug in install command with BUNDLE DESTINATION
|
||||
- Make mac install symlinks check for errors
|
||||
- Fix for CMP0007, to not warn about empty lists
|
||||
- Preserve static libraries when linked multiple times
|
||||
- Use c compiler path to find asm compiler
|
||||
- Allow RC compiler to not get all COMPILE_FLAGS
|
||||
- Complete overhaul for FindBoost.cmake
|
||||
- Minor fixes for FindMPI.cmake
|
||||
- Fix for list command and empty list elements CMP0007
|
||||
- Fix for VS6 and sub-groups
|
||||
- Fix bug 6440, and make sure _INIT flags do not overright cache values
|
||||
- Do not report CMP0003 for anything other than -l
|
||||
- Fix crash in fortran depend scanning, bug 6855
|
||||
- Fix timeout values for cmake's own tests
|
||||
- Better message in compiler ABI detect
|
||||
- Fixes for cpack x11 packages on leopard
|
||||
- Changes to cpack options names
|
||||
- Fixes for FindMPI on 64 bit MS MPI
|
||||
- Fix for -isystem for wxWidgets
|
||||
- Some fixes for chrpath during installation
|
||||
- Fix compatibility with CMake 2.4 for installation of MACOSX_BUNDLE (CMP0006)
|
||||
- Do not use debug postfix when building frameworks on the Mac
|
||||
- Fix exception handling off/on issue with visual studio IDE generators
|
||||
- Fix <OBJECT_DIR> to be native path style
|
||||
- Fix leak in cpack
|
||||
- Some Qt GUI style changes
|
||||
|
||||
Changes in CMake 2.6.0 RC 8
|
||||
|
||||
- Fix sun make very poor performance
|
||||
- Fix includes for automoc in FindQt4
|
||||
|
||||
Changes in CMake 2.6.0 RC 7
|
||||
|
||||
- Fix for chrpath on sun with gcc
|
||||
- Fix FindJNI on unix with HKEY issue bug 6688
|
||||
- Change install location on mac for cmake-gui
|
||||
- Fix for bugs 6730 and 6720 in FindQt4 configured headers in binary dir
|
||||
- Add VS9 support to InstallRequiredSystemLibraries.cmake
|
||||
- Fix some bugs in framework support
|
||||
- Have make edit_cache work with cmake-gui and eclipse generator
|
||||
- Fix find_* to not mistakenly construct network paths on windows
|
||||
- Several bug fixes in cmake-gui Qt program.
|
||||
|
||||
Changes in CMake 2.6.0 RC 6
|
||||
|
||||
- Added ChangeLog.manual
|
||||
- Allow CMakeImportBuildSettings force compiler to be optional
|
||||
- Change cpack deb packager to detect the architecture
|
||||
- Fix FindCurses to be backwards compatible with cache variable CURSES_LIBRARY
|
||||
- Add version variables to FindQt4.cmake
|
||||
- Fix CPack Deb generator to not hard code /usr
|
||||
- Better default size for cmake-gui help dialog
|
||||
- Fix problem where incorrect path was used for cmake.exe when
|
||||
used to do incremental linking on windows nmake or make
|
||||
- Fix build with system libraries on
|
||||
- Add color output in kdevelop
|
||||
- Create non-verbose makefiles in kdevelop
|
||||
- Fix some missing flags for vs IDE flag map
|
||||
- Fix MacOSX install symlink crash problem
|
||||
- Fix turning of Dev warnings with gui's
|
||||
- Fix backwards compatibility issue with FindMPI.cmake
|
||||
- Fix for bug 6605, add -L path for optimized in debug sometimes for
|
||||
backwards compatibility
|
||||
- Allow for CMP0000 to be set before any warnings happen
|
||||
- Do not use FAT32 hack in VS 2005 and 2008 unless on a FAT32 disk,
|
||||
causes try-compiles to be 3 times slower if FAT hack is present.
|
||||
- Fixes to debian cpack
|
||||
- Can now check if a proprty is SET or not
|
||||
- Fix for generate with vs 2005 and vista not being able to create stamp file
|
||||
- set_property with an empty value unsets that property now
|
||||
- Fix FindQt4 on windows with some \ style paths
|
||||
|
||||
Changes in CMake 2.6.0
|
||||
|
||||
- Documentation for all variables
|
||||
- Automatic reload of projects in visual stuido 7 and greater
|
||||
when cmake is re-run.
|
||||
- Direct CDash submit support
|
||||
- Bullseye coverage support
|
||||
- Use full paths for linking to libraries on all platforms. No longer
|
||||
separate into -L and -l.
|
||||
- Enhance the install command
|
||||
- export command and ability to have imported targets
|
||||
- CPack support for rpm and deb
|
||||
- Cross compile support
|
||||
- New Qt GUI
|
||||
- Introduction of the cmake_policy command
|
||||
- Much better Fortran support
|
||||
- Mac OSX Framework creation support
|
||||
- Project generators for Eclipse and CodeBlocks
|
||||
- Beta support for asm in makefiles
|
||||
- Enhanced find_package() command with support for project-installed
|
||||
FooConfig.cmake files
|
||||
- New CMAKE_PREFIX_PATH environment variable to specify user search dirs
|
||||
for find_xxx()
|
||||
- Lots of bug fixes
|
||||
Changes in CMake 2.8.0 RC 2
|
||||
- Fix FindQt4 so that QtHelp depends on QtNetwork
|
||||
- Add missing copyright notice to CMake.cmake module
|
||||
- Add alternative _UTILITY targets to all VS solutions
|
||||
- FindGTest.cmake some bugfixes, also added public function for closer integration btwn GoogleTest & CTest, contributed by Dan Blezek.
|
||||
- Eliminate ExternalProject's use of CMAKE_CFG_INTDIR subdir for Makefile generators. It was causing problems with parallel make -j invocations. Keep it for multi-configuration build systems so that Debug and Release stamp files remain separate.
|
||||
- Fix for bug #9611, some more paths for OpenJDK.
|
||||
- Fix get_filename_component() registry view with wow64
|
||||
- Fix warnings in CMake source code.
|
||||
- Fix module definition file reference for VS6 NMake
|
||||
- Fix for bug #9611 do not hard code archs for search paths of java, look at the machine type.
|
||||
- Fix bug#9619 add a link to module maintainers page in readme.txt for Modules
|
||||
- Add cmake-help-command function to emacs-mode
|
||||
- Add initial XL C compiler flags for safer builds
|
||||
- Split XL compiler information files
|
||||
- Fix default install prefix on Haiku
|
||||
- Fix use of module .def files for MS tools
|
||||
- Add StringProperty options includeing /def: for VS 10 flag table
|
||||
- Convert copyright to OSI BSD and clean up licenses
|
||||
- ENH: Added ctest test coverage for a test timeout
|
||||
- CTest honors test timeouts again.
|
||||
- Remove ctest_submit from CTestTestParallel
|
||||
- Fix shared library creation flag for XL on Linux
|
||||
- Fix BUG: 0009612: --output-on-failure option doesn't work with
|
||||
the new parallel CTest handler
|
||||
- Removed support for cutil library and header file.
|
||||
- Fixed CUDA_PROPAGATE_HOST_FLAGS, added path for Mac SDK.
|
||||
- Make sure LINK_FLAGS are seen by generator, fix for part of bug#9613
|
||||
- Fix issue #9412 - remove RPATH from files copied by
|
||||
BundleUtilities.cmake on Linux. Thank
|
||||
- Fix support for OLD behavior of policy CMP0002
|
||||
- Fix issue #8818 - escape quotes in the license file when using the
|
||||
DragNDrop cpack genera
|
||||
- Fix .vfproj file version for Intel Fortran 10.1
|
||||
- Use BeAPI for per-user package registry on Haiku
|
||||
- Correct comments and use ASM${ASM_DIALECT} env. var instead of ASM
|
||||
env. var to initialize
|
||||
- Fix bug #9529.
|
||||
- Fix Windows GUI implib and image version in VS 6
|
||||
- Convert newlines from CRLF to LF
|
||||
- Oops. Last commit did not create subdir before doing a touch on a
|
||||
file in it. So it fails of a type that is expected to have a
|
||||
location...
|
||||
- Policies 14 and 15 will be first released in 2.8.0
|
||||
- Document full version number with policy default
|
||||
- Simplify bootstrap script source dir detection
|
||||
- Documentation fixes, new CUDA_PROPAGATE_HOST_FLAGS, changed output
|
||||
directory.
|
||||
|
||||
Changes in CMake 2.8.0 RC 1
|
||||
|
||||
- Qt based GUI cmake-gui is now the default GUI, MFC CMakeSetup is no
|
||||
longer included in CMake. ccmake is still supported.
|
||||
- cmake-gui supports multi-state values options.
|
||||
- CMake now has cmake --build command that can build any CMake generated
|
||||
project from the command line.
|
||||
- Visual Studio 2010 beta support has been added.
|
||||
- KDevelop generator now has color output for builds.
|
||||
- CTest supports running tests in parallel with a -j N option.
|
||||
- A new CTest CTEST_USE_LAUNCHERS option can be used to get better
|
||||
dashboard error reports with make based tools.
|
||||
- CTest has support for sub-projects and labels which can interact
|
||||
with CDash.
|
||||
- CTest now supports Git, Mercurial, and Bazaar.
|
||||
- It is now possible to use DESTDIR in CPack for any CMake based projects
|
||||
giving more flexibility on the final path names.
|
||||
- The CPack Deb generator now computes the arch instead of hard coding it.
|
||||
- Fortran/C mixed language projects made much easier. CMake now
|
||||
automatically can compute the run time libraries for a compiler. In
|
||||
addition, a new FortranCInterface module can determine the correct
|
||||
name mangling needed to mix C and Fortran.
|
||||
- Intel compiler support added to OSX, and support for embedded
|
||||
manifests in the windows intel compiler was added.
|
||||
- Depend scanning is now much faster with makefiles.
|
||||
- Many FindQt4 improvements to stay working with current Qt releases
|
||||
- FindMPI has improvements for windows.
|
||||
- FindBoost has been updated to work with the most recent boost releases.
|
||||
- New External Project Module. The 'ExternalProject_Add' function
|
||||
creates a custom target to drive download, update/patch, configure,
|
||||
build, install and test steps of an external project.
|
||||
- xmlrpc dependancy has been removed
|
||||
- CMAKE_OSX_DEPLOYMENT_TARGET cache variable has been created to set the
|
||||
deployment OS for a build on OSX.
|
||||
- Several new policies were added:
|
||||
CMP0012
|
||||
The if() command can recognize named boolean constants.
|
||||
CMP0013
|
||||
Duplicate binary directories are not allowed.
|
||||
CMP0014
|
||||
Input directories must have CMakeLists.txt.
|
||||
CMP0015
|
||||
The set() CACHE mode and option() command make the cache value
|
||||
visible.
|
||||
- Lots of bug fixes.
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +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 distributed 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.
|
||||
|
@ -1,6 +1,22 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 distributed 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")
|
||||
SET(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S;asm)
|
||||
# *.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)
|
||||
INCLUDE(CMakeASMInformation)
|
||||
SET(ASM_DIALECT)
|
||||
|
@ -1,3 +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 distributed 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)
|
||||
|
@ -1,29 +1,13 @@
|
||||
# This file has been automatically generated by CMake. DO NOT EDIT!
|
||||
# It contains the build configuration for @PROJECT_NAME@. The command
|
||||
# CMAKE_EXPORT_BUILD_SETTINGS(...) was used by @PROJECT_NAME@ to
|
||||
# generate this file. Another project can use
|
||||
# CMAKE_IMPORT_BUILD_SETTINGS(...) to load the build configuration
|
||||
# from this file. The contents of this file may be different across
|
||||
# versions of CMake. The values set here should not be used by user
|
||||
# code.
|
||||
|
||||
SET(CMAKE_BUILD_SETTING_CMAKE_MAJOR_VERSION "@CMAKE_MAJOR_VERSION@")
|
||||
SET(CMAKE_BUILD_SETTING_CMAKE_MINOR_VERSION "@CMAKE_MINOR_VERSION@")
|
||||
SET(CMAKE_BUILD_SETTING_PROJECT_NAME "@PROJECT_NAME@")
|
||||
|
||||
SET(CMAKE_BUILD_SETTING_C_COMPILER "@CMAKE_C_COMPILER@")
|
||||
SET(CMAKE_BUILD_SETTING_C_FLAGS "@CMAKE_C_FLAGS@")
|
||||
SET(CMAKE_BUILD_SETTING_C_FLAGS_DEBUG "@CMAKE_C_FLAGS_DEBUG@")
|
||||
SET(CMAKE_BUILD_SETTING_C_FLAGS_RELEASE "@CMAKE_C_FLAGS_RELEASE@")
|
||||
SET(CMAKE_BUILD_SETTING_C_FLAGS_MINSIZEREL "@CMAKE_C_FLAGS_MINSIZEREL@")
|
||||
SET(CMAKE_BUILD_SETTING_C_FLAGS_RELWITHDEBINFO "@CMAKE_C_FLAGS_RELWITHDEBINFO@")
|
||||
|
||||
SET(CMAKE_BUILD_SETTING_CXX_COMPILER "@CMAKE_CXX_COMPILER@")
|
||||
SET(CMAKE_BUILD_SETTING_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
|
||||
SET(CMAKE_BUILD_SETTING_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
|
||||
SET(CMAKE_BUILD_SETTING_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
|
||||
SET(CMAKE_BUILD_SETTING_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
|
||||
SET(CMAKE_BUILD_SETTING_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
|
||||
|
||||
SET(CMAKE_BUILD_SETTING_BUILD_TYPE "@CMAKE_BUILD_TYPE@")
|
||||
SET(CMAKE_BUILD_SETTING_BUILD_TOOL "@CMAKE_BUILD_TOOL@")
|
||||
# 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.")
|
||||
|
@ -0,0 +1,95 @@
|
||||
# - 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
|
||||
#
|
||||
# Usage:
|
||||
# ===========================
|
||||
#
|
||||
# if(MSVC)
|
||||
# include(CMakeDetermineVSServicePack)
|
||||
# DetermineVSServicePack( my_service_pack )
|
||||
#
|
||||
# if( my_service_pack )
|
||||
# message(STATUS "Detected: ${my_service_pack}")
|
||||
# endif()
|
||||
# endif()
|
||||
#
|
||||
# ===========================
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2009 Kitware, Inc.
|
||||
# Copyright 2009 Philip Lowman <philip@yhbt.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 distributed 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")
|
||||
else()
|
||||
set(_version "")
|
||||
endif()
|
||||
set(${_OUT_VAR} ${_version} PARENT_SCOPE)
|
||||
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})
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/return0.cc"
|
||||
"int main() { return 0; }\n")
|
||||
|
||||
try_compile(DETERMINED_VS_SERVICE_PACK
|
||||
"${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")
|
||||
|
||||
if(DETERMINED_VS_SERVICE_PACK AND _output)
|
||||
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(_cl_version_string ${_major}.${_minor}.${_patch}.${_tweak})
|
||||
|
||||
# Call helper function to determine VS version
|
||||
_DetermineVSServicePackFromCompiler(_sp "${_cl_version_string}")
|
||||
if(_sp)
|
||||
set(${_pack} ${_sp} CACHE INTERNAL
|
||||
"The Visual Studio Release with Service Pack")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
@ -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 distributed 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)
|
||||
|
@ -0,0 +1,97 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 distributed 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")
|
||||
|
||||
|
||||
# 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 _result _resultDefines)
|
||||
SET(${_result})
|
||||
SET(_gccOutput)
|
||||
FILE(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/dummy" "\n" )
|
||||
EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} -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")
|
||||
|
||||
IF( "${_gccOutput}" MATCHES "> search starts here[^\n]+\n *(.+) *\n *End of (search) list" )
|
||||
SET(${_result} ${CMAKE_MATCH_1})
|
||||
STRING(REPLACE "\n" " " ${_result} "${${_result}}")
|
||||
SEPARATE_ARGUMENTS(${_result})
|
||||
ENDIF( "${_gccOutput}" MATCHES "> search starts here[^\n]+\n *(.+) *\n *End of (search) list" )
|
||||
|
||||
IF( "${_gccStdout}" MATCHES "built-in>\"\n(.+)# 1 +\"dummy\"" )
|
||||
SET(_builtinDefines ${CMAKE_MATCH_1})
|
||||
# Remove the '# 1 "<command-line>"' lines
|
||||
STRING(REGEX REPLACE "# 1[^\n]+\n" "" _filteredOutput "${_builtinDefines}")
|
||||
# Remove the "#define " parts from the output:
|
||||
STRING(REGEX REPLACE "#define " "" _defineRemoved "${_filteredOutput}")
|
||||
# Replace the line breaks with spaces, so we can use separate arguments afterwards
|
||||
STRING(REGEX REPLACE "\n" " " _defineRemoved "${_defineRemoved}")
|
||||
# Remove space at the end, this would produce empty list items
|
||||
STRING(REGEX REPLACE " +$" "" ${_resultDefines} "${_defineRemoved}")
|
||||
SEPARATE_ARGUMENTS(${_resultDefines})
|
||||
ENDIF( "${_gccStdout}" MATCHES "built-in>\"\n(.+)# 1 +\"dummy\"" )
|
||||
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)
|
@ -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 distributed 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)
|
||||
|
@ -1,3 +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 distributed 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)
|
||||
|
@ -0,0 +1,3 @@
|
||||
PROGRAM CMakeFortranCompilerId
|
||||
PRINT *, 'ABI Detection Binary'
|
||||
END
|
@ -0,0 +1,106 @@
|
||||
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(__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
|
||||
END
|
@ -1,84 +0,0 @@
|
||||
PROGRAM CMakeFortranCompilerId
|
||||
! Identify the compiler
|
||||
#if defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
PRINT *, 'INFO:compiler[Intel]'
|
||||
#elif defined(__SUNPRO_F90) || defined(__SUNPRO_F95)
|
||||
PRINT *, 'INFO:compiler[SunPro]'
|
||||
#elif defined(__GNUC__)
|
||||
PRINT *, 'INFO:compiler[GNU]'
|
||||
#elif defined(__IBM__) || defined(__IBMC__)
|
||||
PRINT *, 'INFO:compiler[VisualAge]'
|
||||
#elif defined(__PGI)
|
||||
PRINT *, 'INFO:compiler[PGI]'
|
||||
#elif defined(_COMPILER_VERSION)
|
||||
PRINT *, 'INFO:compiler[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(_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]'
|
||||
#else
|
||||
PRINT *, 'INFO:compiler[]'
|
||||
#endif
|
||||
|
||||
! Identify the platform
|
||||
#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]'
|
||||
! Haiku also defines __BEOS__ so we must
|
||||
! put it prior to the check for __BEOS__
|
||||
#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]'
|
||||
#else
|
||||
PRINT *, 'INFO:platform[]'
|
||||
#endif
|
||||
END PROGRAM
|
@ -1,12 +0,0 @@
|
||||
# just install the modules
|
||||
# new file added, force rerunning cmake
|
||||
|
||||
SUBDIRS(Platform)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.cmake$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.cpp$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.cxx$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.in$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.c$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.h$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules .*\\.F90$)
|
||||
INSTALL_FILES(${CMAKE_DATA_DIR}/Modules readme\\.txt$)
|
@ -1,3 +1,18 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
|
||||
SET (CMAKE_MAKE_PROGRAM "nmake" CACHE STRING
|
||||
"Program used to build from makefiles.")
|
||||
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
|
||||
|
@ -0,0 +1,87 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Function parse implicit linker options.
|
||||
# This is used internally by CMake and should not be included by user
|
||||
# code.
|
||||
|
||||
function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var)
|
||||
set(implicit_libs "")
|
||||
set(implicit_dirs_tmp)
|
||||
|
||||
# Parse implicit linker arguments.
|
||||
set(linker "CMAKE_LINKER-NOTFOUND")
|
||||
if(CMAKE_LINKER)
|
||||
get_filename_component(linker ${CMAKE_LINKER} NAME)
|
||||
endif()
|
||||
set(linker_regex "^( *|.*/)(${linker}|ld|collect2)")
|
||||
string(REGEX REPLACE "\r?\n" ";" output_lines "${text}")
|
||||
foreach(line IN LISTS output_lines)
|
||||
set(cmd)
|
||||
if("${line}" MATCHES "${linker_regex}")
|
||||
if(UNIX)
|
||||
separate_arguments(args UNIX_COMMAND "${line}")
|
||||
else()
|
||||
separate_arguments(args WINDOWS_COMMAND "${line}")
|
||||
endif()
|
||||
list(GET args 0 cmd)
|
||||
endif()
|
||||
if("${cmd}" MATCHES "${linker_regex}")
|
||||
string(REGEX REPLACE ";-([LYz]);" ";-\\1" args "${args}")
|
||||
foreach(arg IN LISTS args)
|
||||
if("${arg}" MATCHES "^-L(.:)?[/\\]")
|
||||
# Unix search path.
|
||||
string(REGEX REPLACE "^-L" "" dir "${arg}")
|
||||
list(APPEND implicit_dirs_tmp ${dir})
|
||||
elseif("${arg}" MATCHES "^-l[^:]")
|
||||
# Unix library.
|
||||
string(REGEX REPLACE "^-l" "" lib "${arg}")
|
||||
list(APPEND implicit_libs ${lib})
|
||||
elseif("${arg}" MATCHES "^(.:)?[/\\].*\\.a$")
|
||||
# Unix library full path.
|
||||
list(APPEND implicit_libs ${arg})
|
||||
elseif("${arg}" MATCHES "^-Y(P,)?")
|
||||
# Sun search path.
|
||||
string(REGEX REPLACE "^-Y(P,)?" "" dirs "${arg}")
|
||||
string(REPLACE ":" ";" dirs "${dirs}")
|
||||
list(APPEND implicit_dirs_tmp ${dirs})
|
||||
elseif("${arg}" MATCHES "^-l:")
|
||||
# HP named library.
|
||||
list(APPEND implicit_libs ${arg})
|
||||
elseif("${arg}" MATCHES "^-z(all|default|weak)extract")
|
||||
# Link editor option.
|
||||
list(APPEND implicit_libs ${arg})
|
||||
endif()
|
||||
endforeach()
|
||||
break()
|
||||
elseif("${line}" MATCHES "LPATH(=| is:? )")
|
||||
# HP search path.
|
||||
string(REGEX REPLACE ".*LPATH(=| is:? *)" "" paths "${line}")
|
||||
string(REPLACE ":" ";" paths "${paths}")
|
||||
list(APPEND implicit_dirs_tmp ${paths})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Cleanup list of directories.
|
||||
set(implicit_dirs "")
|
||||
foreach(d IN LISTS implicit_dirs_tmp)
|
||||
get_filename_component(dir "${d}" ABSOLUTE)
|
||||
list(APPEND implicit_dirs "${dir}")
|
||||
endforeach()
|
||||
list(REMOVE_DUPLICATES implicit_dirs)
|
||||
|
||||
# Return results.
|
||||
set(${lib_var} "${implicit_libs}" PARENT_SCOPE)
|
||||
set(${dir_var} "${implicit_dirs}" PARENT_SCOPE)
|
||||
endfunction()
|
@ -1,2 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
FIND_PROGRAM(CMAKE_MAKE_PROGRAM NAMES gmake make smake)
|
||||
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
|
||||
|
@ -0,0 +1,52 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# VCExpress does not support cross compiling, which is necessary for Win CE
|
||||
SET( _CMAKE_MAKE_PROGRAM_NAMES devenv)
|
||||
IF(NOT CMAKE_CROSSCOMPILING)
|
||||
SET( _CMAKE_MAKE_PROGRAM_NAMES ${_CMAKE_MAKE_PROGRAM_NAMES} VCExpress)
|
||||
ENDIF(NOT CMAKE_CROSSCOMPILING)
|
||||
|
||||
FIND_PROGRAM(CMAKE_MAKE_PROGRAM
|
||||
NAMES MSBuild
|
||||
HINTS
|
||||
"$ENV{SYSTEMROOT}/Microsoft.NET/Framework/v4.0.20506/"
|
||||
c:/WINDOWS/Microsoft.NET/Framework/v4.0.20506/
|
||||
)
|
||||
|
||||
FIND_PROGRAM(CMAKE_MAKE_PROGRAM
|
||||
NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
|
||||
HINTS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup\\VS;EnvironmentDirectory]
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0\\Setup;Dbghelp_path]
|
||||
"$ENV{ProgramFiles}/Microsoft Visual Studio 10.0/Common7/IDE"
|
||||
"$ENV{ProgramFiles}/Microsoft Visual Studio10.0/Common7/IDE"
|
||||
"$ENV{ProgramFiles}/Microsoft Visual Studio 10/Common7/IDE"
|
||||
"$ENV{ProgramFiles}/Microsoft Visual Studio10/Common7/IDE"
|
||||
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10.0/Common7/IDE"
|
||||
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10.0/Common7/IDE"
|
||||
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 10/Common7/IDE"
|
||||
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio10/Common7/IDE"
|
||||
"/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/"
|
||||
"/Program Files/Microsoft Visual Studio 10/Common7/IDE/"
|
||||
PATHS
|
||||
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio .NET/Common7/IDE"
|
||||
"$ENV{ProgramFiles}/Microsoft Visual Studio .NET/Common7/IDE"
|
||||
|
||||
)
|
||||
|
||||
MARK_AS_ADVANCED(CMAKE_MAKE_PROGRAM)
|
||||
SET(MSVC10 1)
|
||||
SET(MSVC_VERSION 1600)
|
||||
|
@ -1,22 +0,0 @@
|
||||
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 copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. The name of the author may not be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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.
|
@ -0,0 +1,24 @@
|
||||
# This file is read by ctest in script mode (-S)
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2009 Kitware, Inc.
|
||||
# Copyright 2009 Alexander Neundorf <neundorf@kde.org>
|
||||
#
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
# Determine the current system, so this information can be used
|
||||
# in ctest scripts
|
||||
include(CMakeDetermineSystem)
|
||||
|
||||
# Also load the system specific file, which sets up e.g. the search paths.
|
||||
# This makes the FIND_XXX() calls work much better
|
||||
include(CMakeSystemSpecificInformation)
|
||||
|
@ -1,25 +1,38 @@
|
||||
# - Check whether the C compiler supports a given flag.
|
||||
# CHECK_C_COMPILER_FLAG(FLAG VARIABLE)
|
||||
#
|
||||
# FLAG - the compiler flag
|
||||
# VARIABLE - variable to store the result
|
||||
#
|
||||
# This actually calls the check_c_source_compiles macro.
|
||||
# See help for CheckCSourceCompiles for a listing of variables
|
||||
# that can modify the build.
|
||||
# CHECK_C_COMPILER_FLAG(<flag> <var>)
|
||||
# <flag> - the compiler flag
|
||||
# <var> - variable to store the result
|
||||
# This internally calls the check_c_source_compiles macro.
|
||||
# See help for CheckCSourceCompiles for a listing of variables
|
||||
# that can modify the build.
|
||||
|
||||
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
|
||||
#=============================================================================
|
||||
# Copyright 2006-2009 Kitware, Inc.
|
||||
# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
INCLUDE(CheckCSourceCompiles)
|
||||
|
||||
MACRO (CHECK_C_COMPILER_FLAG _FLAG _RESULT)
|
||||
SET(SAFE_CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}")
|
||||
SET(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}")
|
||||
CHECK_C_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT})
|
||||
CHECK_C_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT}
|
||||
# Some compilers do not fail with a bad flag
|
||||
FAIL_REGEX "unrecognized .*option" # GNU
|
||||
FAIL_REGEX "ignoring unknown option" # MSVC
|
||||
FAIL_REGEX "[Uu]nknown option" # HP
|
||||
FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
|
||||
FAIL_REGEX "command option .* is not recognized" # XL
|
||||
)
|
||||
SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
|
||||
ENDMACRO (CHECK_C_COMPILER_FLAG)
|
||||
|
||||
|
@ -1,21 +1,38 @@
|
||||
# - Check whether the CXX compiler supports a given flag.
|
||||
# CHECK_CXX_COMPILER_FLAG(FLAG VARIABLE)
|
||||
#
|
||||
# FLAG - the compiler flag
|
||||
# VARIABLE - variable to store the result
|
||||
# CHECK_CXX_COMPILER_FLAG(<flag> <var>)
|
||||
# <flag> - the compiler flag
|
||||
# <var> - variable to store the result
|
||||
# This internally calls the check_cxx_source_compiles macro. See help
|
||||
# for CheckCXXSourceCompiles for a listing of variables that can
|
||||
# modify the build.
|
||||
|
||||
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
|
||||
#=============================================================================
|
||||
# Copyright 2006-2009 Kitware, Inc.
|
||||
# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
# 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 distributed this file outside of CMake, substitute the full
|
||||
# License text for the above reference.)
|
||||
|
||||
INCLUDE(CheckCXXSourceCompiles)
|
||||
|
||||
MACRO (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT)
|
||||
SET(SAFE_CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}")
|
||||
SET(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}")
|
||||
CHECK_CXX_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT})
|
||||
CHECK_CXX_SOURCE_COMPILES("int main() { return 0;}" ${_RESULT}
|
||||
# Some compilers do not fail with a bad flag
|
||||
FAIL_REGEX "unrecognized .*option" # GNU
|
||||
FAIL_REGEX "ignoring unknown option" # MSVC
|
||||
FAIL_REGEX "[Uu]nknown option" # HP
|
||||
FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
|
||||
FAIL_REGEX "command option .* is not recognized" # XL
|
||||
)
|
||||
SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
|
||||
ENDMACRO (CHECK_CXX_COMPILER_FLAG)
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue