mirror of
https://github.com/AxioDL/nod.git
synced 2025-08-11 06:29:14 +00:00
Fetch nowide on Windows
This commit is contained in:
parent
9584303083
commit
6febcc2c79
@ -59,6 +59,18 @@ endif()
|
|||||||
|
|
||||||
include (CMakePackageConfigHelpers)
|
include (CMakePackageConfigHelpers)
|
||||||
|
|
||||||
|
if (WIN32 AND NOT TARGET nowide)
|
||||||
|
include(FetchContent)
|
||||||
|
FetchContent_Declare(
|
||||||
|
nowide
|
||||||
|
URL https://github.com/boostorg/nowide/releases/download/v11.3.0/nowide_standalone_v11.3.0.tar.gz
|
||||||
|
URL_HASH SHA256=153ac93173c8de9c08e7701e471fa750f84c27e51fe329570c5aa06016591f8c
|
||||||
|
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
||||||
|
EXCLUDE_FROM_ALL
|
||||||
|
)
|
||||||
|
FetchContent_MakeAvailable(nowide)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if(NOT TARGET spdlog)
|
if(NOT TARGET spdlog)
|
||||||
find_package(spdlog REQUIRED)
|
find_package(spdlog REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
@ -36,6 +36,7 @@ target_link_libraries(nod PUBLIC $<BUILD_INTERFACE:spdlog::spdlog>)
|
|||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_sources(nod PRIVATE FileIOWin32.cpp)
|
target_sources(nod PRIVATE FileIOWin32.cpp)
|
||||||
|
target_link_libraries(nod PRIVATE nowide::nowide)
|
||||||
else()
|
else()
|
||||||
target_compile_options(nod PRIVATE -Wno-multichar)
|
target_compile_options(nod PRIVATE -Wno-multichar)
|
||||||
target_sources(nod PRIVATE FileIOFILE.cpp)
|
target_sources(nod PRIVATE FileIOFILE.cpp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user