Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 83b95e2

Browse files
tcm-marcelapavlo
authored andcommitted
[CMake] Add pg_query to export set to make linking public
1 parent 130ca61 commit 83b95e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/ConfigGen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function(peloton_generate_export_configs)
5555
configure_file("cmake/Templates/PelotonConfig.cmake.in" "${PROJECT_BINARY_DIR}/PelotonConfig.cmake" @ONLY)
5656

5757
# Add targets to the build-tree export set
58-
export(TARGETS peloton peloton-proto FILE "${PROJECT_BINARY_DIR}/PelotonTargets.cmake")
58+
export(TARGETS peloton peloton-proto pg_query FILE "${PROJECT_BINARY_DIR}/PelotonTargets.cmake")
5959
if (TARGET peloton-capnp)
6060
export(TARGETS peloton-capnp APPEND FILE "${PROJECT_BINARY_DIR}/PelotonTargets.cmake")
6161
endif()

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ peloton_pickup_peloton_sources(${PROJECT_SOURCE_DIR})
4444

4545
add_library(peloton SHARED ${srcs})
4646

47-
target_link_libraries(peloton PUBLIC ${Peloton_LINKER_LIBS} peloton-proto PRIVATE pg_query)
47+
target_link_libraries(peloton PUBLIC ${Peloton_LINKER_LIBS} peloton-proto pg_query)
4848

4949
peloton_default_properties(peloton)
5050
set_target_properties(peloton PROPERTIES

0 commit comments

Comments
 (0)