Skip to content

Commit

Permalink
Use vcpkg for fast-float and spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Aug 14, 2024
1 parent 3fdb30d commit f0e19b0
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
[submodule "ThirdParty/vcpkg"]
path = ThirdParty/vcpkg
url = https://github.com/microsoft/vcpkg
[submodule "ThirdParty/fast_float"]
path = ThirdParty/fast_float
url = https://github.com/fastfloat/fast_float
[submodule "ThirdParty/custom-opm-common/opm-common"]
path = ThirdParty/custom-opm-common/opm-common
url = https://github.com/CeetronSolutions/opm-common
Expand All @@ -25,6 +22,3 @@
[submodule "ThirdParty/qtadvanceddocking"]
path = ThirdParty/qtadvanceddocking
url = https://github.com/CeetronSolutions/qtadvanceddocking.git
[submodule "ThirdParty/spdlog"]
path = ThirdParty/spdlog
url = https://github.com/gabime/spdlog.git
2 changes: 1 addition & 1 deletion ApplicationLibCode/Application/Tools/RiaStdStringTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "RiaStdStringTools.h"
#include "RiaLogging.h"

#include "fast_float/include/fast_float/fast_float.h"
#include "fast_float/fast_float.h"

#include <QString>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "RifEclipseKeywordContent.h"

// Utility class for fast conversion from string to float
#include "fast_float/include/fast_float/fast_float.h"
#include "fast_float/fast_float.h"

// Utility class memory mapping of files
#include "mio/mio.hpp"
Expand Down
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,12 @@ set_property(
add_subdirectory(ThirdParty/tomlplusplus)

# ##############################################################################
# spdlog
# spdlog and fast_float
# ##############################################################################

add_subdirectory(ThirdParty/spdlog)
list(APPEND THIRD_PARTY_LIBRARIES spdlog)
find_package(FastFloat CONFIG REQUIRED)
find_package(spdlog CONFIG REQUIRED)
list(APPEND THIRD_PARTY_LIBRARIES FastFloat::fast_float spdlog::spdlog)

# ##############################################################################
# Arrow
Expand Down
1 change: 0 additions & 1 deletion ThirdParty/fast_float
Submodule fast_float deleted from 052975
1 change: 0 additions & 1 deletion ThirdParty/spdlog
Submodule spdlog deleted from 8979f7
4 changes: 3 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"boost-spirit",
"eigen3",
"grpc",
"type-lite"
"type-lite",
"fast-float",
"spdlog"
]
}

0 comments on commit f0e19b0

Please sign in to comment.