Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Detect/use recommended compiler flags
This patch set sets recommended compiler flags based on detected OS/compiler evironment detection in a consistent way. 1)---------------- Add file ITKSetStandardCompilerFlags.cmake Wrote warning flag detection system (adapted by David Cole) Use the check_compiler_warning_flags function to determine at CMake time what is the set of common C and C++ compiler warning flags supported by the current compilers. Add those warning flags to ITK_REQUIRED_C_FLAGS and ITK_REQUIRED_CXX_FLAGS so they are enabled by default. 2)--------------- Default to CMake 2.8 CheckCXXAcceptsFlags, and removed custom itkCheckCXXAcceptsFlags.cmake version. Converted to use the default CMake capability (which filter on compiler options that only give warnings, and removes those also) rather than the custom code that was only in ITK. 3)--------------- Consolodated ITKPlatformSpecificChecks.cmake consistently into ITKSetStandardCompilerFlags.cmake Re-writing code in ITKPlatformSpecificChecks.cmake and make a more consistent set of tools used to identify which compiler options should be used. Issue-Ids: ITK-145 Change-Id: Iab95e55064b69f3eee489b65a389a556db8fc65e
- Loading branch information