Navigation Menu

Skip to content

Commit

Permalink
Alternate approach
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 25, 2021
1 parent c087ffa commit 1dd2ca9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/analysis/CMakeLists.txt
Expand Up @@ -446,6 +446,11 @@ add_library(qgis_analysis ${LIBRARY_TYPE} ${QGIS_ANALYSIS_SRCS} ${QGIS_ANALYSIS_
# require c++17
target_compile_features(qgis_analysis PRIVATE cxx_std_17)

# Exiv still uses std::auto_ptr
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_definitions(qgis_analysis PUBLIC _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR)
endif()

target_include_directories(qgis_analysis PUBLIC
${CMAKE_SOURCE_DIR}/src/analysis
${CMAKE_SOURCE_DIR}/src/analysis/georeferencing
Expand Down
2 changes: 0 additions & 2 deletions src/analysis/raster/qgsexiftools.cpp
Expand Up @@ -16,8 +16,6 @@
#include "qgsexiftools.h"
#include "qgspoint.h"

// needed because released versions of eviv (<=0.27) make use of auto_ptr in the public header
#define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
#include <exiv2/exiv2.hpp>

#include <QRegularExpression>
Expand Down

0 comments on commit 1dd2ca9

Please sign in to comment.