Skip to content

Commit

Permalink
Remove configure.bat, export CXX_STANDARD (#387)
Browse files Browse the repository at this point in the history
* Remove configure.bat and test fix for finding av
* Set CXX_STANDARD for core library
* Fix deprecation warnings

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Jul 6, 2022
1 parent 4416bee commit a714900
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
25 changes: 0 additions & 25 deletions configure.bat

This file was deleted.

4 changes: 2 additions & 2 deletions geospatial/src/Dem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ int Dem::Load(const std::string &_filename)
{
// If successful, set the world width and height
this->dataPtr->worldWidth =
math::SphericalCoordinates::Distance(upLeftLat, upLeftLong,
math::SphericalCoordinates::DistanceWGS84(upLeftLat, upLeftLong,
upRightLat, upRightLong);
this->dataPtr->worldHeight =
math::SphericalCoordinates::Distance(upLeftLat, upLeftLong,
math::SphericalCoordinates::DistanceWGS84(upLeftLat, upLeftLong,
lowLeftLat, lowLeftLong);
}
// Assume non-Earth DEM (e.g., moon)
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ gz_get_libsources_and_unittests(sources gtest_sources)

# Create the library target
gz_create_core_library(
SOURCES ${sources})
SOURCES ${sources}
CXX_STANDARD ${CMAKE_CXX_STANDARD})

if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set(CXX_FILESYSTEM_LIBRARIES stdc++fs)
Expand Down

0 comments on commit a714900

Please sign in to comment.