Skip to content

Commit

Permalink
Switch to RapidJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 16, 2019
1 parent c9e4423 commit 595a998
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endif ()


# 3rd party libraries:
find_package(NLJSON REQUIRED)
find_package(RapidJSON REQUIRED)


enable_testing()
Expand Down
8 changes: 0 additions & 8 deletions cmake/FindNLJSON.cmake

This file was deleted.

8 changes: 8 additions & 0 deletions cmake/FindRapidJSON.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
find_path(RAPIDJSON_HEADER rapidjson/rapidjson.h)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(RAPIDJSON DEFAULT_MSG RAPIDJSON_HEADER)

add_library(p::rapidjson INTERFACE IMPORTED)
set_property(TARGET p::rapidjson PROPERTY INTERFACE_INCLUDE_DIRECTORIES
${RAPIDJSON_HEADER})
2 changes: 1 addition & 1 deletion src/lfortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(SRC
)
add_library(lfortran_lib ${SRC})
target_include_directories(lfortran_lib BEFORE PUBLIC ${lfortran_SOURCE_DIR}/src)
target_link_libraries(lfortran_lib p::nljson)
target_link_libraries(lfortran_lib p::rapidjson)
install(TARGETS lfortran_lib
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
Expand Down

0 comments on commit 595a998

Please sign in to comment.