exiv2/cmake
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>
2020-09-04 06:45:00 +02:00
..
msvc_conan_profiles Fix #780 2019-04-18 08:33:12 +01:00
compilerFlags.cmake Properly detect availability of flags in cmake/compilerFlags.cmake (#1252) 2020-09-04 06:45:00 +02:00
compilerFlagsExiv2.cmake cmake: use add_compile_option & add new security flags 2019-10-09 12:37:38 +02:00
config.h.cmake fix_1219_mingw_crw_date_0.27 2020-05-26 07:36:45 +01:00
Doxyfile.in [Doxygen] define PARSED_BY_DOXYGEN when building the documentation 2019-03-02 17:24:44 +01:00
exiv2_uninstall.cmake Rename config folder to cmake 2018-06-08 14:04:25 +02:00
exiv2.pc.in Fixes in .pc file for being compatible with more distributions 2019-01-12 13:39:12 +01:00
findDependencies.cmake EXIV2_ENABLE_SSH: Fix compatibility with >=libssh-0.9.2 2019-11-14 17:15:53 +01:00
FindIconv.cmake Disable libiconv support when building with Visual Studio. 2020-07-19 17:10:35 +01:00
FindRegex.cmake MSYS2/MinGW: Disable Regex 2018-10-26 17:47:15 +02:00
generateConfigFile.cmake Replace check_function_exists by check_cxx_symbol_exist 2019-03-04 07:47:54 +01:00
generateDoc.cmake Generate doxygen.hpp page 2019-03-02 17:24:10 +01:00
mainSetup.cmake Prevent conflicts with uninstall target 2020-05-23 09:43:36 +02:00
packaging.cmake Use PROJECT_VERSION_TWEAK to identify RC# 2020-04-27 14:51:04 +01:00
printSummary.cmake Don't report CMAKE_CXX_COMPILER - it's on the previous line of output. 2020-05-02 17:32:01 +01:00