Commit Graph

15 Commits

Author SHA1 Message Date
Luis Díaz Más
4746bb46af cmake: export compile commands 2022-02-05 11:25:51 +01:00
Luis Diaz Mas
e87424b5e0 Add CTest support 2021-05-15 16:58:24 +02:00
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>
2020-09-05 11:18:46 +02:00
Luis Díaz Más
9893d291b2 Prevent conflicts with uninstall target 2020-05-23 09:43:36 +02:00
Luis Diaz Mas
fabfcac274 Require c++98 privately only in the library target 2020-04-23 17:15:27 +02:00
Michał Walenciak
6887822243 removing unused header generation 2019-02-02 09:53:05 +01:00
Luis Diaz Mas
0e02d46aa8 CMake: add mechanism to deprecate code 2019-01-14 18:52:25 +01:00
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
2019-01-12 17:10:14 +01:00
Luis Díaz Más
91a6e79d5c CMake: Use cmake_dependent_option for EXIV2_ENABLE_NLS 2018-11-16 17:23:47 +01:00
Luis Díaz Más
274ef04f7e CMake: Proper way to require c++98 standard 2018-11-08 17:26:02 +01:00
Luis Diaz Mas
611d6c7bbc CMake: Move uninstall code to mainSetup 2018-10-30 15:26:23 +01:00
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.
2018-09-14 13:20:08 +02:00
Luis Díaz Más
b78d85c9bb Set default visibility to hidden 2018-09-14 13:20:08 +02:00
Luis Díaz Más
dce05ac488 Remove occurrences of EXIV2_BUILDDIR and rely in EXIV2_BINDIR 2018-09-11 06:54:44 +02:00
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
2018-08-17 10:28:08 +02:00