summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* GNU: Use -fvisibility on GCC 4.0 and 4.1 tooBrad King2016-08-021-1/+1
| | | | | | | This flag is needed for the `<LANG>_VISIBILITY_PRESET` target property. It has been supported since GCC 4.0, not 4.2 as we previously recorded. Fixes #16222.
* Merge topic 'wix-disabled-components'Brad King2016-08-011-1/+9
|\ | | | | | | | | | | ad453f05 CPackWIX: Support CPACK_COMPONENT_<compName>_DISABLED 6f108f84 CPackComponent: Document the *_HIDDEN and *_DISABLED variables
| * CPackComponent: Document the *_HIDDEN and *_DISABLED variablesNils Gladitz2016-07-221-1/+9
| |
* | Use string(APPEND) in ModulesDaniel Pfeifer2016-07-2758-240/+240
| | | | | | | | | | | | | | Automate with: find Modules -type f -print0 | xargs -0 perl -i -0pe \ 's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
* | Merge topic 'nsis-protect-uninst-exec'Brad King2016-07-221-1/+1
|\ \ | |/ |/| | | | | 11768733 NSIS: Quote uninstaller path when executing it in a shell
| * NSIS: Quote uninstaller path when executing it in a shellJustin Clift2016-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Protect our `$0` reference in the shell as `"$0"`. Otherwise it works with a space in the path only due to an insecure Windows feature. Prior to this fix, any installer using the option added by commit v2.8.9~234^2 (Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL, 2011-06-11) exposes a local privilege escalation vulnerability. Reported-by: Amir Szekely <kichik@gmail.com> Reported-by: Ug_0 Security
* | FindBISON: Refactor public and inner macro routinesEon Jeong2016-07-181-44/+42
| |
* | FindBISON: Add REPORT_FILE option to pass --report-file=FILEEon Jeong2016-07-181-8/+24
| |
* | FindBISON: Change usage of [VERBOSE <file>] to [VERBOSE [<file>]]Eon Jeong2016-07-181-23/+48
| |
* | FindGIF: Detect version from GIF 4.1.6 and aboveBen Campbell2016-07-151-11/+35
| | | | | | | | | | | | | | GIF 4.1.6 introduced version macros in the header file. Use them to get a full version. Fixes #16196.
* | Merge topic 'toolchain-flag-init'Brad King2016-07-157-54/+45
|\ \ | | | | | | | | | | | | | | | | | | | | | 8a98cf64 Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files 37d15c39 MSVC: Set all CMAKE_*_LINKER_FLAGS_INIT directly 55c884ed Embarcadero: Set all CMAKE_*_LINKER_FLAGS_INIT directly aec3c79a Strip CMAKE_*_LINKER_FLAGS[_<CONFIG>] initializer whitespace
| * | Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain filesBrad King2016-07-146-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document these variables. Change our convention for setting these variables from: set(CMAKE_EXE_LINKER_FLAGS_INIT "...") to string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ...") so that any value previously set by a toolchain file will be used.
| * | MSVC: Set all CMAKE_*_LINKER_FLAGS_INIT directlyBrad King2016-07-131-28/+19
| | | | | | | | | | | | Avoid copying CMAKE_EXE_LINKER_FLAGS_INIT to the others.
| * | Embarcadero: Set all CMAKE_*_LINKER_FLAGS_INIT directlyBrad King2016-07-131-9/+5
| | | | | | | | | | | | Avoid copying CMAKE_EXE_LINKER_FLAGS_INIT to the others.
| * | Strip CMAKE_*_LINKER_FLAGS[_<CONFIG>] initializer whitespaceBrad King2016-07-131-5/+9
| | |
* | | FindPostgreSQL: Fix initialization of PostgreSQL_LIBRARIESNils Gladitz2016-07-141-1/+1
| | |
* | | Merge topic 'FindOpenMP-updates'Brad King2016-07-141-10/+111
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 73e9f36e FindOpenMP: Detect version (specification date) from compiler 8f1103c0 FindOpenMP: Cleanup all variables unconditionally ec963f04 FindOpenMP: Improve documentation formatting
| * | | FindOpenMP: Detect version (specification date) from compilerSujin Philip2016-07-131-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | Port changes from VTK commit fda6a31cb9 (Added Improved FindOpenMP module, 2015-04-23). Improve use of try_compile to avoid needing to pass OpenMP flags as libraries.
| * | | FindOpenMP: Cleanup all variables unconditionallyBrad King2016-07-131-2/+4
| | | |
| * | | FindOpenMP: Improve documentation formattingBrad King2016-07-131-11/+8
| |/ / | | | | | | | | | | | | Also drop link to OpenMP compilers because our supported list may not include all compilers.
* | | Merge topic 'ExternalData-SecurityFix'Brad King2016-07-141-1/+2
|\ \ \ | | | | | | | | | | | | | | | | 9b588b2b ExternalData: Hide security-sensitive details from output
| * | | ExternalData: Hide security-sensitive details from outputAlex Turbov2016-07-131-1/+2
| | | | | | | | | | | | | | | | Do not disclose credentials when printing URIs used to fetch external resources.
* | | | Merge topic 'ExternalProject-alt-urls'Brad King2016-07-142-41/+62
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 2eec433f ExternalProject: Add support for multiple alternative URLs
| * | | | ExternalProject: Add support for multiple alternative URLsLars Schmertmann2016-07-132-41/+62
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Now it is possible to pass multiple URLs as a list that will be tried in and foreach(). So it will try next URL if the previous failed. Fixes #15749.
* | | | Merge topic 'no-implicit-link-clang-rt'Brad King2016-07-141-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | 35322226 CMakeParseImplicitLinkInfo: Exclude libclang_rt libraries
| * | | CMakeParseImplicitLinkInfo: Exclude libclang_rt librariesBrad King2016-07-111-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | These libraries are used for Clang runtime analysis support with flags like `-fsanitize=memory` and are not actually implicitly linked libraries. Fixes #16194.
* | | Merge topic 'findicu'Brad King2016-07-131-0/+359
|\ \ \ | | | | | | | | | | | | | | | | | | | | e3bff7b3 Help: Add notes for topic 'findicu' 4a63be15 FindICU: New module
| * | | FindICU: New moduleRoger Leigh2016-07-131-0/+359
| |/ /
* | | Merge topic 'FindHDF5-fix-misc-issues'Brad King2016-07-131-37/+99
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | d5e4516e FindHDF5: Cleanup inconsistent use of HDF5_ROOT 4ece8bdd FindHDF5: Properly fail when required components are not found. 87c1cd9c FindHDF5: Fix h5cc arg parsing to work with homebrew on Mac
| * | | FindHDF5: Cleanup inconsistent use of HDF5_ROOTChuck Atkins2016-07-121-10/+14
| | | |
| * | | FindHDF5: Properly fail when required components are not found.Chuck Atkins2016-07-121-1/+20
| | | |
| * | | FindHDF5: Fix h5cc arg parsing to work with homebrew on MacChuck Atkins2016-07-121-26/+65
| | |/ | |/|
* | | Merge topic 'cpack-rpm-debug-logging-fix'Brad King2016-07-131-1/+3
|\ \ \ | | | | | | | | | | | | | | | | 83799aa9 CPack/RPM: Debug logging should only print if requested for
| * | | CPack/RPM: Debug logging should only print if requested forHarry Mallon2016-07-131-1/+3
| | |/ | |/|
* | | Merge topic 'fix-cpack-rpm-different-package-names'Brad King2016-07-131-0/+1
|\ \ \ | | | | | | | | | | | | | | | | 672e6d2e CPack/RPM: Add missed CPACK_RPM_FILE_NAME fallback variable
| * | | CPack/RPM: Add missed CPACK_RPM_FILE_NAME fallback variableAlex Turbov2016-07-111-0/+1
| | |/ | |/| | | | | | | | | | | | | In commit v3.6.0-rc1~66^2 (CPack/RPM different package names, 2016-05-15) we forgot the non-uppercased fallback variable name `CPACK_RPM_<COMPONENT>_FILE_NAME`. Add it now.
| * | Merge branch 'FindJNI-ubuntu-paths' into releaseBrad King2016-07-051-3/+4
| |\ \
* | | | Fix typos.Felix Geyer2016-07-102-2/+2
| |_|/ |/| |
* | | ExternalProject: Use default file name if extracting from URL failsRuslan Baratov2016-07-071-1/+6
| | | | | | | | | | | | | | | | | | The download/extract step uses the file name only internally so we can just use a fallback default name if one cannot be extracted from the URL.
* | | Merge topic 'toolchain-flag-init'Brad King2016-07-0744-172/+229
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | a66004be Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files cdde77e5 OpenWatcom: Partially modernize platform information modules f9dbe22c Intel: Do not use GNU-like flags on Windows 5a3ed0d7 Intel: Do not use MSVC-like flags for Fortran
| * | | Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain filesBrad King2016-07-0636-149/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document these variables. Change our convention for setting these variables from: set(CMAKE_C_FLAGS_INIT "...") to string(APPEND CMAKE_C_FLAGS_INIT " ...") so that any value previously set by a toolchain file will be used. Automate the conversion with: sed -i 's/set *(\(CMAKE_\(C\|CXX\|Fortran\|RC\|ASM\|${[^}]\+}\)_FLAGS\(_[^_]\+\)\?_INIT \+"\)/string(APPEND \1 /' \ Modules/Compiler/*.cmake Modules/Platform/*.cmake and follow up with some manual fixes (e.g. to cases that already meant to append). Also revert the automated changes to contexts that are not protected from running multiple times.
| * | | OpenWatcom: Partially modernize platform information modulesBrad King2016-07-065-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate from the old `<os>-<cc>.cmake` layout to the modern `<os>-<id>-<lang>.cmake` layout. Keep settings common to C and C++ in a `Windows-OpenWatcom.cmake` helper module with an include blocker. For now just add both C and CXX settings in the helper module.
| * | | Intel: Do not use GNU-like flags on WindowsBrad King2016-07-055-24/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor options out of `Modules/Compiler/Intel-{ASM,C,CXX,Fortran}.cmake` into a common helper in `Modules/Compiler/Intel.cmake`. Condition them to be used only on non-Windows hosts where the Intel compiler is GNU-like instead of MSVC-like. Previously this worked only because the options were later overridden by `Modules/Platform/Windows-Intel*.cmake`, but it is cleaner to not set the options in the first place.
| * | | Intel: Do not use MSVC-like flags for FortranBrad King2016-07-051-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Teach `Modules/Platform/Windows-MSVC.cmake` not to use MSVC options for Fortran. We use the `__windows_compiler_msvc` for the Intel Fortran compiler on Windows for other settings, but we do not want the flags. Previously this worked only because the options were later overridden by `Modules/Platform/Windows-Intel*.cmake`, but it is cleaner to not set the options in the first place.
* | | | Merge topic 'ExternalProject-more-url-filenames'Brad King2016-07-061-7/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 57c337e2 ExternalProject: Match filenames in URLs with query strings and anchors
| * | | | ExternalProject: Match filenames in URLs with query strings and anchorsBrad King2016-07-051-7/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | While at it, refactor logic to consolidate the filename extraction and verification into a single match. Inspired-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
* | | | Merge topic 'FindJNI-cleanup'Brad King2016-07-061-2/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 4e11c966 FindJNI: Improve formatting of FPHSA call
| * | | | FindJNI: Improve formatting of FPHSA callO Libre2016-07-051-2/+5
| |/ / / | | | | | | | | | | | | Pass one argument per line for better readability.
* | | | Merge topic 'FindJNI-ubuntu-paths'Brad King2016-07-061-3/+4
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | 26d16380 FindJNI: Fix support for Ubuntu 15.10
| * | | FindJNI: Fix support for Ubuntu 15.10O Libre2016-07-051-3/+4
| | | | | | | | | | | | | | | | | | | | The library search paths added by commit v3.6.0-rc1~281^2~1 (FindJNI: Add support for Ubuntu 15.10, 2016-03-08) were incorrect. Fix them.