Skip to content

Commit

Permalink
disable warning errs on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Oct 4, 2023
1 parent d5fec65 commit 0ec49b3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/BuildJSONCONS.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

set(JSONCONS_BUILD_TESTS OFF)
add_subdirectory(vendor/jsoncons EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_SOURCE_DIR}/vendor/jsoncons ${CMAKE_BINARY_DIR}/jsoncons EXCLUDE_FROM_ALL)

2 changes: 1 addition & 1 deletion cmake/BuildMyCurl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CURL_USE_LIBSSH2 OFF)
set(BUILD_TESTING OFF)
set(PICKY_COMPILER OFF)

add_subdirectory(vendor/curl EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_SOURCE_DIR}/vendor/curl EXCLUDE_FROM_ALL)
if(OS_MACOS)
target_compile_options(
libcurl PRIVATE -Wno-error=ambiguous-macro -Wno-error=deprecated-declarations -Wno-error=unreachable-code
Expand Down
2 changes: 1 addition & 1 deletion cmake/BuildPugiXML.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ExternalProject_Add(
pugixml_build
URL https://github.com/zeux/pugixml/releases/download/v1.13/pugixml-1.13.tar.gz
URL_MD5 3e4c588e03bdca140844f3c47c1a995e
INSTALL_BYPRODUCTS <INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}pugixml${CMAKE_STATIC_LIBRARY_SUFFIX}
CMAKE_GENERATOR ${CMAKE_GENERATOR}
INSTALL_BYPRODUCTS <INSTALL_DIR>/lib/${CMAKE_STATIC_LIBRARY_PREFIX}pugixml${CMAKE_STATIC_LIBRARY_SUFFIX}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DBUILD_SHARED_LIBS=OFF -DPUGIXML_BUILD_TESTS=OFF
${PUGIXML_CMAKE_PLATFORM_OPTIONS})

Expand Down
5 changes: 5 additions & 0 deletions src/parsers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
target_sources(${CMAKE_PROJECT_NAME} PRIVATE jsonpointer.cpp jsonpath.cpp regex.cpp xml.cpp errors.cpp)

# on linux, disable conversion errors
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wno-error -Wno-conversion -Wno-shadow -Wno-unused-parameter)
endif()

0 comments on commit 0ec49b3

Please sign in to comment.