Skip to content

Commit

Permalink
Link libjsonnet++ to libjsonnet (#1113)
Browse files Browse the repository at this point in the history
to awoid linker errors (for example, ld on Windows says:
cpp/libjsonnet++.cpp:104:(.text+0x74c): undefined reference
to `jsonnet_realloc'...).
  • Loading branch information
podsvirov authored Nov 14, 2023
1 parent 9e94559 commit 0679858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(LIBJSONNETPP_SOURCE

add_library(libjsonnet++ SHARED ${LIBJSONNETPP_HEADERS} ${LIBJSONNETPP_SOURCE})
add_dependencies(libjsonnet++ jsonnet)
# target_link_libraries(libjsonnet libjsonnet)
target_link_libraries(libjsonnet++ libjsonnet)

# CMake prepends CMAKE_SHARED_LIBRARY_PREFIX to shared libraries, so without
# this step the output would be |liblibjsonnet|.
Expand Down

0 comments on commit 0679858

Please sign in to comment.