summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Refactor target COMPILE_OPTIONS and COMPILE_FLAGS handlingBrad King2013-06-279-171/+67
| | | | | | | | | | | | Replace the cmLocalGenerator GetCompileOptions method with an AddCompileOptions method since all call sites of the former simply append the result to a flags string anyway. Add a "lang" argument to AddCompileOptions and move the CMAKE_<LANG>_FLAGS_REGEX filter into it. Move the call sites in each generator to a location that has both the language and configuration available. In the Makefile generator this also moves the flags from build.make to flags.make where they belong.
* Escape target flags taken from COMPILE_OPTIONSBrad King2013-06-277-10/+41
| | | | | | | | | | | | Factor appending of individual flags out into an AppendFlagEscape method in cmLocalGenerator and teach it to use EscapeForShell. Update all COMPILE_OPTIONS handling to use AppendFlagEscape. Override the method in the Xcode generator to use its custom escape implementation. Teach the CompileOptions test to add an option that requires escaping everywhere instead of just with the GNU tools.
* Embarcadero: Use response files only for includes, objects, and libsBrad King2013-06-271-3/+4
| | | | | | Leave other flags directly in the Makefile command lines and outside any special inline response file syntax. Otherwise Borland does not support flags with quotes in response files.
* CMake Nightly Date StampKitware Robot2013-06-271-1/+1
|
* Merge topic 'dag-LINKER_LANGUAGE'Brad King2013-06-2613-4/+65
|\ | | | | | | | | | | | | | | ff015ee Genex: Report error if a target file is needed to evaluate link libraries. b58aff9 Genex: Extend EvaluatingLinkLibraries to also check the top target name. b1c19ce Genex: Make LINK_LANGUAGE report an error when evaluating link libraries. 0e1cb07 Add missing return after error report.
| * Genex: Report error if a target file is needed to evaluate link libraries.Stephen Kelly2013-06-247-1/+29
| | | | | | | | | | | | | | | | Constructs such as target_link_libraries(foo $<$<STREQUAL:$<TARGET_FILE:foo>,foo.so>:bar>) segfault before this patch.
| * Genex: Extend EvaluatingLinkLibraries to also check the top target name.Stephen Kelly2013-06-242-2/+8
| | | | | | | | | | This will allow testing whether we are evaluating the link libraries of a particular target.
| * Genex: Make LINK_LANGUAGE report an error when evaluating link libraries.Stephen Kelly2013-06-246-1/+27
| |
| * Add missing return after error report.Stephen Kelly2013-06-241-0/+1
| |
* | Merge topic 'FindFreetype-gtkmm'Brad King2013-06-261-4/+13
|\ \ | | | | | | | | | | | | a34839d FindFreetype: Detect Freetype installed by GtkMM installer for win
| * | FindFreetype: Detect Freetype installed by GtkMM installer for winDaniele E. Domenichelli2013-06-211-4/+13
| | |
* | | Merge topic 'version-compare-genex'Brad King2013-06-266-41/+92
|\ \ \ | | | | | | | | | | | | | | | | | | | | e605528 Add generator expressions for version comparision. 48bb48e De-duplicate version comparison code.
| * | | Add generator expressions for version comparision.Stephen Kelly2013-06-124-0/+78
| | | |
| * | | De-duplicate version comparison code.Stephen Kelly2013-06-122-41/+14
| | | | | | | | | | | | | | | | | | | | Extend the VersionCompare in cmSystemTools to handle 8 components, and port the if command to use that.
* | | | Merge topic 'export-COMPILE_OPTIONS-property'Brad King2013-06-265-1/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 77ff352 Generate INTERFACE_COMPILE_OPTIONS on export.
| * | | | Generate INTERFACE_COMPILE_OPTIONS on export.Stephen Kelly2013-06-105-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | This was missing from commit 80ca9c4b (Add COMPILE_OPTIONS target property., 2013-05-16).
* | | | | Merge topic 'COMPILER_TARGET'Brad King2013-06-264-0/+21
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 2d9ec1d Add compiler target compile options.
| * | | | | Add compiler target compile options.Stephen Kelly2013-06-114-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For clang, this allows passing -target <triple> to the compiler, and for qcc, -V<arch> using toolchain files containing something like set(triple arm-linux-gnueabihf) set(CMAKE_C_COMPILER "/usr/bin/clang") set(CMAKE_C_COMPILER_TARGET ${triple}) set(CMAKE_CXX_COMPILER "/usr/bin/clang++") set(CMAKE_CXX_COMPILER_TARGET ${triple}) or set(arch gcc_ntoarmv7le) set(CMAKE_C_COMPILER /opt/qnx650/host/linux/x86/usr/bin/qcc) set(CMAKE_C_COMPILER_TARGET ${arch}) set(CMAKE_CXX_COMPILER /opt/qnx650/host/linux/x86/usr/bin/QCC) set(CMAKE_CXX_COMPILER_TARGET ${arch}) Both clang and qcc are inherently cross compiler( driver)s.
* | | | | | CMake Nightly Date StampKitware Robot2013-06-261-1/+1
| | | | | |
* | | | | | Merge topic '13582_configured_file_regeneration'Brad King2013-06-252-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ad50250 cmMakefile: Track configured files so we can regenerate them (#13582) 4a6397a Ninja: Track configured files so we can regenerate them.
| * | | | | | cmMakefile: Track configured files so we can regenerate them (#13582)Robert Maynard2013-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently when a configured file is removed from the build directory, running the build command will not regenerate the file. Now detect this and will rerun cmake properly when a user issues the build command.
| * | | | | | Ninja: Track configured files so we can regenerate them.Robert Maynard2013-06-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike the Makefile generator the ninja generator did not tack any of its output files, so if they are deleted the generator would not run.
* | | | | | | Merge topic 'makefile_AddCMakeOutputFile_signature'Brad King2013-06-254-13/+13
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | 6dbd4a5 cmMakefile: Refactor AddCMakeDependFile and AddCMakeOutputFile.
| * | | | | | cmMakefile: Refactor AddCMakeDependFile and AddCMakeOutputFile.Robert Maynard2013-06-244-13/+13
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | AddCMakeDependFile and AddCMakeOutputFile both store as std::string and all calling sites use std::string. So instead of creating more temporary objects, lets just use std::strings.
* | | | | | CMake Nightly Date StampKitware Robot2013-06-251-1/+1
|/ / / / /
* | | | | Merge topic 'config-dependent-CMAKE_AUTOMOC'Brad King2013-06-243-40/+143
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ea4d784 QtAutomoc: Use config-dependent compile definitions and includes. 67f6ceb QtAutomoc: Fix handling of list separator for compile definitions.
| * | | | | QtAutomoc: Use config-dependent compile definitions and includes.Stephen Kelly2013-06-123-42/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of always using the includes and defines which are not config-specific, ensure that the config specific ones can be used. Task-number: #13589
| * | | | | QtAutomoc: Fix handling of list separator for compile definitions.Stephen Kelly2013-06-121-1/+3
| | | | | |
* | | | | | Merge topic 'transitive-property-PP-FOR_EACH'Brad King2013-06-244-18/+41
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d8db25 Use a preprocessor loop to manage the valid transitive properties.
| * | | | | | Use a preprocessor loop to manage the valid transitive properties.Stephen Kelly2013-06-104-18/+41
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Hopefully this will prevent regressions when adding further transitive properties in the future.
* | | | | | Merge topic 'find-targets-in-INTERFACE_COMPILE_OPTIONS'Brad King2013-06-241-0/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | 8a3b5be Find targets in INTERFACE_COMPILE_OPTIONS when exporting for try_compile.
| * | | | | Find targets in INTERFACE_COMPILE_OPTIONS when exporting for try_compile.Stephen Kelly2013-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was missing from commit 80ca9c4b (Add COMPILE_OPTIONS target property., 2013-05-16).
* | | | | | Merge topic 'fix-COMPILE_OPTIONS-transitive-performance-regression'Brad King2013-06-241-1/+2
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | 477e413 Add missing 'seen' check for evaluating COMPILE_OPTIONS.
| * | | | | Add missing 'seen' check for evaluating COMPILE_OPTIONS.Stephen Kelly2013-06-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 089fe1c1 (Optimize genex evaluation for includes and defines., 2013-02-01) introduced an optimization on DAG processing to not reprocess properties on targets which have already been seen. This was refactored slightly in commit 8dfdf1c7 (Fix the tests for evaluating includes and defines., 2013-02-18), but was not extended to cover COMPILE_OPTIONS in commit 80ca9c4b (Add COMPILE_OPTIONS target property., 2013-05-16). This omission causes the same performance regression in running cmake on LLVM which 089fe1c1 fixed before, but this time for the transitive evaluation of the COMPILE_OPTIONS property.
* | | | | | Merge topic 'set-sysroot'Brad King2013-06-2410-9/+136
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | de4da66 Use --sysroot when cross compiling.
| * | | | | | Use --sysroot when cross compiling.Stephen Kelly2013-06-0710-9/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As CMAKE_ROOT_FIND_PATH can be a list, a new CMAKE_SYSROOT is introduced, which is never a list. The contents of this variable is passed to supporting compilers as --sysroot. It is also accounted for when processing implicit link directories reported by the compiler, and when generating RPATH information.
* | | | | | | Merge topic 'add-whitespace'Brad King2013-06-2413-23/+24
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2331b57 Add whitespace after colons in error messages.
| * | | | | | | Add whitespace after colons in error messages.Stephen Kelly2013-06-2113-23/+24
| | | | | | | |
* | | | | | | | Merge topic 'CMakeDetermineVSServicePack-vs11'Brad King2013-06-241-24/+21
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2aa62e0 CMakeDetermineVSServicePack: Add VS 11 update 1 and 2 (#14239) 1746a35 CMakeDetermineVSServicePack: Improve documentation
| * | | | | | | | CMakeDetermineVSServicePack: Add VS 11 update 1 and 2 (#14239)Brad King2013-06-211-1/+5
| | | | | | | | |
| * | | | | | | | CMakeDetermineVSServicePack: Improve documentationBrad King2013-06-211-24/+17
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refer users to the newer CMAKE_<LANG>_COMPILER_VERSION variables. Use a more concise summary. Format the documentation to look better in the "cmake --help-module" output.
* | | | | | | | Merge topic 'openbsd-elf-parsing'Brad King2013-06-242-2/+11
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 480e924 OpenBSD: Enable ELF parsing and editing (#14241)
| * | | | | | | | OpenBSD: Enable ELF parsing and editing (#14241)David Coppa2013-06-212-2/+11
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenBSD provides ELF ABI declarations in #include <stdint.h> #include <elf_abi.h> Teach the platform check and cmELF implementation to use these.
* | | | | | | | Merge topic 'FindBoost-error-reason-static'Brad King2013-06-241-1/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86cbd73 FindBoost: Clarify failure on missing 'static' libs (#14235)
| * | | | | | | | FindBoost: Clarify failure on missing 'static' libs (#14235)Brad King2013-06-201-1/+6
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Boost_USE_STATIC_LIBS is ON we may complain that Boost libraries cannot be found even when shared libraries are present. Update the error message to tell the user explicitly that we want static libraries. Suggested-by: Laurence R. McGlashan <laurence.mcglashan@gmail.com>
* | | | | | | | Merge topic 'FindX11-OSX-10.8'Brad King2013-06-241-0/+2
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 488d968 FindX11: Search in /opt/X11 for OS X 10.8 (#14232)
| * | | | | | | | FindX11: Search in /opt/X11 for OS X 10.8 (#14232)Marius Schamschula2013-06-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of Mac OS X 10.8, X11 is no longer installed under /usr/X11, but under /opt/X11.
* | | | | | | | | Merge topic 'FindGTK2-tweaks'Brad King2013-06-241-2/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 508e8ca FindGTK2: Detect gthread library 8dca8ce FindGTK2: Move check for pangocairo in gtk module
| * | | | | | | | | FindGTK2: Detect gthread libraryDaniele E. Domenichelli2013-06-191-0/+3
| | | | | | | | | |
| * | | | | | | | | FindGTK2: Move check for pangocairo in gtk moduleDaniele E. Domenichelli2013-06-191-2/+2
| |/ / / / / / / /