Blame SOURCES/leatherman-1.12.4-shared_nowide.patch

45c5bd
--- a/nowide/CMakeLists.txt~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/nowide/CMakeLists.txt	2021-03-09 08:57:57.469391575 -0600
45c5bd
@@ -1,7 +1,5 @@
45c5bd
 find_package(Boost 1.54 REQUIRED)
45c5bd
 
45c5bd
-add_leatherman_includes(${Boost_INCLUDE_DIRS} "${CMAKE_CURRENT_SOURCE_DIR}/../vendor/nowide/include")
45c5bd
-add_leatherman_headers(../vendor/nowide/include/boost)
45c5bd
 if(WIN32)
45c5bd
     add_leatherman_library(../vendor/nowide/src/iostream.cpp)
45c5bd
 endif()
45c5bd
--- a/execution/CMakeLists.txt~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/execution/CMakeLists.txt	2021-03-09 08:59:46.136860198 -0600
45c5bd
@@ -1,4 +1,4 @@
45c5bd
-find_package(Boost 1.54 REQUIRED COMPONENTS regex filesystem system)
45c5bd
+find_package(Boost 1.73 REQUIRED COMPONENTS regex filesystem system nowide)
45c5bd
 
45c5bd
 add_leatherman_deps("${Boost_LIBRARIES}")
45c5bd
 if ("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS")
45c5bd
@@ -10,7 +10,6 @@
45c5bd
 add_leatherman_includes("${Boost_INCLUDE_DIRS}")
45c5bd
 
45c5bd
 leatherman_dependency(util)
45c5bd
-leatherman_dependency(nowide)
45c5bd
 leatherman_dependency(locale)
45c5bd
 leatherman_dependency(logging)
45c5bd
 leatherman_dependency(file_util)
45c5bd
--- a/file_util/CMakeLists.txt~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/file_util/CMakeLists.txt	2021-03-09 09:00:26.641683668 -0600
45c5bd
@@ -1,9 +1,8 @@
45c5bd
-find_package(Boost 1.54 REQUIRED COMPONENTS regex filesystem system)
45c5bd
+find_package(Boost 1.54 REQUIRED COMPONENTS regex filesystem system nowide)
45c5bd
 
45c5bd
 add_leatherman_deps("${Boost_LIBRARIES}")
45c5bd
 add_leatherman_includes("${Boost_INCLUDE_DIRS}")
45c5bd
 
45c5bd
-leatherman_dependency(nowide)
45c5bd
 leatherman_dependency(locale)
45c5bd
 leatherman_dependency(logging)
45c5bd
 leatherman_dependency(util)
45c5bd
--- a/logging/CMakeLists.txt~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/logging/CMakeLists.txt	2021-03-09 09:01:03.565522737 -0600
45c5bd
@@ -4,7 +4,6 @@
45c5bd
 add_leatherman_deps(${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
45c5bd
 add_leatherman_includes("${Boost_INCLUDE_DIRS}")
45c5bd
 
45c5bd
-leatherman_dependency(nowide)
45c5bd
 leatherman_dependency(locale)
45c5bd
 
45c5bd
 if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS")
45c5bd
--- a/tests/CMakeLists.txt~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/tests/CMakeLists.txt	2021-03-09 09:01:47.352331908 -0600
45c5bd
@@ -1,8 +1,8 @@
45c5bd
-set(BOOST_REQUIRED_COMPONENTS system date_time chrono log log_setup thread filesystem regex)
45c5bd
+set(BOOST_REQUIRED_COMPONENTS system date_time chrono log log_setup thread filesystem regex nowide)
45c5bd
 if (LEATHERMAN_USE_LOCALES)
45c5bd
     set(BOOST_REQUIRED_COMPONENTS ${BOOST_REQUIRED_COMPONENTS} locale)
45c5bd
 endif()
45c5bd
-find_package(Boost "1.54" REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
45c5bd
+find_package(Boost "1.73" REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
45c5bd
 
45c5bd
 include_directories(BEFORE ${LEATHERMAN_CATCH_INCLUDE} ${LEATHERMAN_INCLUDE_DIRS})
45c5bd
 add_executable(leatherman_test main.cc ${LEATHERMAN_TEST_SRCS})
45c5bd
--- a/file_util/src/file.cc~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/file_util/src/file.cc	2021-03-09 09:02:58.297022731 -0600
45c5bd
@@ -1,6 +1,6 @@
45c5bd
 #include <leatherman/file_util/file.hpp>
45c5bd
 #include <boost/nowide/fstream.hpp>
45c5bd
-#include <boost/nowide/cenv.hpp>
45c5bd
+#include <boost/nowide/cstdlib.hpp>
45c5bd
 #include <boost/filesystem.hpp>
45c5bd
 #include <sstream>
45c5bd
 #include <leatherman/logging/logging.hpp>
45c5bd
--- a/util/src/environment.cc~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/util/src/environment.cc	2021-03-09 09:03:39.013845293 -0600
45c5bd
@@ -1,5 +1,5 @@
45c5bd
 #include <leatherman/util/environment.hpp>
45c5bd
-#include <boost/nowide/cenv.hpp>
45c5bd
+#include <boost/nowide/cstdlib.hpp>
45c5bd
 #include <stdexcept>
45c5bd
 
45c5bd
 using namespace std;
45c5bd
--- a/util/tests/environment.cc~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/util/tests/environment.cc	2021-03-09 09:04:22.487655817 -0600
45c5bd
@@ -1,6 +1,6 @@
45c5bd
 #include <catch.hpp>
45c5bd
 #include <leatherman/util/environment.hpp>
45c5bd
-#include <boost/nowide/cenv.hpp>
45c5bd
+#include <boost/nowide/cstdlib.hpp>
45c5bd
 
45c5bd
 using namespace std;
45c5bd
 using namespace leatherman::util;
45c5bd
--- a/util/CMakeLists.txt~	2020-12-09 04:17:13.000000000 -0600
45c5bd
+++ b/util/CMakeLists.txt	2021-03-18 09:40:55.004699613 -0500
45c5bd
@@ -1,6 +1,6 @@
45c5bd
 find_package(Boost 1.54 REQUIRED date_time chrono system)
45c5bd
 
45c5bd
-add_leatherman_deps(${Boost_LIBRARIES})
45c5bd
+add_leatherman_deps(${Boost_LIBRARIES} -lboost_nowide)
45c5bd
 add_leatherman_includes("${Boost_INCLUDE_DIRS}")
45c5bd
 
45c5bd
 leatherman_dependency(nowide)