[ox] Fix MSVC build
This commit is contained in:
parent
ef85eea691
commit
40f3c4ecb5
2
deps/ox/src/CMakeLists.txt
vendored
2
deps/ox/src/CMakeLists.txt
vendored
@ -1,3 +1 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
|
||||||
|
|
||||||
add_subdirectory(ox)
|
add_subdirectory(ox)
|
||||||
|
2
deps/ox/src/ox/clargs/CMakeLists.txt
vendored
2
deps/ox/src/ox/clargs/CMakeLists.txt
vendored
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
add_library(
|
add_library(
|
||||||
OxClArgs
|
OxClArgs
|
||||||
|
2
deps/ox/src/ox/fs/CMakeLists.txt
vendored
2
deps/ox/src/ox/fs/CMakeLists.txt
vendored
@ -10,7 +10,7 @@ add_library(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(NOT OX_BARE_METAL)
|
if(NOT OX_BARE_METAL)
|
||||||
if(NOT APPLE)
|
if(NOT APPLE AND NOT MSVC)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
OxFS PUBLIC
|
OxFS PUBLIC
|
||||||
stdc++fs
|
stdc++fs
|
||||||
|
4
deps/ox/src/ox/oc/CMakeLists.txt
vendored
4
deps/ox/src/ox/oc/CMakeLists.txt
vendored
@ -6,7 +6,9 @@ add_library(
|
|||||||
|
|
||||||
find_package(jsoncpp REQUIRED)
|
find_package(jsoncpp REQUIRED)
|
||||||
|
|
||||||
target_compile_options(OxOrganicClaw PRIVATE -Wsign-conversion)
|
if(NOT MSVC)
|
||||||
|
target_compile_options(OxOrganicClaw PRIVATE -Wsign-conversion)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
OxOrganicClaw PUBLIC
|
OxOrganicClaw PUBLIC
|
||||||
|
4
deps/ox/src/ox/std/CMakeLists.txt
vendored
4
deps/ox/src/ox/std/CMakeLists.txt
vendored
@ -14,7 +14,9 @@ add_library(
|
|||||||
trace.cpp
|
trace.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(OxStd PRIVATE -Wsign-conversion)
|
if(NOT MSVC)
|
||||||
|
target_compile_options(OxStd PRIVATE -Wsign-conversion)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT OX_BARE_METAL)
|
if(NOT OX_BARE_METAL)
|
||||||
set_property(
|
set_property(
|
||||||
|
2
deps/ox/src/ox/std/test/CMakeLists.txt
vendored
2
deps/ox/src/ox/std/test/CMakeLists.txt
vendored
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
StdTest
|
StdTest
|
||||||
|
Loading…
Reference in New Issue
Block a user