You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas Petazzoni bbe0b70840
Properly detect availability of flags in cmake/compilerFlags.cmake (#1252)
Instead of relying on fragile and complex logic to decide if a
compiler flag is available or not, use the check_c_compiler_flag()
macro provided by the CMake standard library.

This for example avoids using -fcf-protection on architectures that
don't support this option.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

(cherry picked from commit dd2d181755a6e642c0a8e3225ef5407fff49eb3a)

When resolving the conflict from applying the patch, I also took the liberty
of re-indenting the snippet correcly and fixing mismatching
HAS_FCF_PROTECTION and HAS_FSTACK_PROTECTOR_STRONG variables
(the conditionals used GCC_ prefix but the variables were definded without it).

Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
5 years ago
..
msvc_conan_profiles Fix #780 6 years ago
Doxyfile.in [Doxygen] define PARSED_BY_DOXYGEN when building the documentation 6 years ago
FindIconv.cmake Disable libiconv support when building with Visual Studio. 5 years ago
FindRegex.cmake MSYS2/MinGW: Disable Regex 7 years ago
compilerFlags.cmake Properly detect availability of flags in cmake/compilerFlags.cmake (#1252) 5 years ago
compilerFlagsExiv2.cmake cmake: use add_compile_option & add new security flags 6 years ago
config.h.cmake fix_1219_mingw_crw_date_0.27 5 years ago
exiv2.pc.in Fixes in .pc file for being compatible with more distributions 7 years ago
exiv2_uninstall.cmake Rename config folder to cmake 7 years ago
findDependencies.cmake EXIV2_ENABLE_SSH: Fix compatibility with >=libssh-0.9.2 6 years ago
generateConfigFile.cmake Replace check_function_exists by check_cxx_symbol_exist 6 years ago
generateDoc.cmake Generate doxygen.hpp page 6 years ago
mainSetup.cmake Prevent conflicts with uninstall target 5 years ago
packaging.cmake Use PROJECT_VERSION_TWEAK to identify RC# 5 years ago
printSummary.cmake Don't report CMAKE_CXX_COMPILER - it's on the previous line of output. 5 years ago