Skip to content

Commit

Permalink
Merge pull request #182 from mjh65/pr_fix_build_mac_osx
Browse files Browse the repository at this point in the history
Fix compile errors on Mac OSX
  • Loading branch information
fpw authored Nov 21, 2023
2 parents fdd7faf + 195fda4 commit 35d68bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -fPIC")
if (APPLE)
# This should be considered as a temporary fix until resolved in the nlohmann/json submodule
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
endif()

add_library(avitab_common "${CMAKE_CURRENT_LIST_DIR}/Logger.cpp")
add_library(avitab_xplane "")
Expand Down
2 changes: 1 addition & 1 deletion src/avitab/AviTab.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AviTab: public AppFunctions {
void onHomeButton() override;
std::shared_ptr<world::World> getNavWorld() override;
using MagVarMap = std::map<std::pair<double, double>, double>;
MagVarMap getMagneticVariations(std::vector<std::pair<double, double>> locations);
MagVarMap getMagneticVariations(std::vector<std::pair<double, double>> locations) override;
std::string getMETARForAirport(const std::string &icao) override;
void reloadMetar() override;
void loadUserFixes(std::string filename) override;
Expand Down
1 change: 1 addition & 0 deletions src/maps/OverlayedRoute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "OverlayedRoute.h"
#include "src/Logger.h"
#include <sstream>
#include <iomanip>

namespace maps {
Expand Down

0 comments on commit 35d68bc

Please sign in to comment.