15 Commits (15328aaa9ff7ffe4c47138687a25e77e41be15df)

Author SHA1 Message Date
Luis Díaz Más 4746bb46af cmake: export compile commands 3 years ago
Luis Diaz Mas e87424b5e0 Add CTest support 4 years ago
Jan Tojnar 48f2c9dbba
cmake: Fix paths with absolute GNUInstallDirs
It is not generally true that `CMAKE_INSTALL_<dir>` variables are relative paths:

https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files
https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path

Let's join them properly as paths, not strings.

On Windows, the absolute paths will likely remain unsupported as neither the CMake function,
nor the C++ code is able to detect absolute paths.

Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
5 years ago
Luis Díaz Más 9893d291b2 Prevent conflicts with uninstall target 5 years ago
Luis Diaz Mas fabfcac274 Require c++98 privately only in the library target 5 years ago
Michał Walenciak 6887822243 removing unused header generation 6 years ago
Luis Diaz Mas 0e02d46aa8 CMake: add mechanism to deprecate code 7 years ago
Luis Díaz Más 04c9b181cc Fix #644. Export specializations of BasicError
- Only export BasicError::setMsg which is the only implementation present in the .cpp
- Only export BasicError specialization on __APPLE__

It seems that gcc automatically adds the attribute when the visibility
settings are set to hidden. See this link for more information:
https://reviews.llvm.org/D35388
7 years ago
Luis Díaz Más 91a6e79d5c CMake: Use cmake_dependent_option for EXIV2_ENABLE_NLS 7 years ago
Luis Díaz Más 274ef04f7e CMake: Proper way to require c++98 standard 7 years ago
Luis Diaz Mas 611d6c7bbc CMake: Move uninstall code to mainSetup 7 years ago
Luis Díaz Más 6ba4081f95 Use CMake-GenerateExportHeader to generate a macro to export symbols
- Delete the hardcoded macros in config.h taking care of that.
7 years ago
Luis Díaz Más b78d85c9bb Set default visibility to hidden 7 years ago
Luis Díaz Más dce05ac488 Remove occurrences of EXIV2_BUILDDIR and rely in EXIV2_BINDIR 7 years ago
Luis Diaz Mas 17ad919ec2 CMake: Add RPATH configuration for Linux/Solaris
Note that this RPATH setup is following a recommendation from the CMake
documentation:
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling#recommendations
7 years ago