Skip to content

Commit 1b8efed

Browse files
authored
Merge pull request nlohmann#2318 from eli-schwartz/installfix
cmake: install pkg-config file relative to current_binary_dir
2 parents b3da8b3 + 7d01a9e commit 1b8efed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ endif()
158158
DESTINATION ${NLOHMANN_JSON_CONFIG_INSTALL_DIR}
159159
)
160160
install(
161-
FILES "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc"
161+
FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
162162
DESTINATION ${NLOHMANN_JSON_PKGCONFIG_INSTALL_DIR}
163163
)
164164
endif()

0 commit comments

Comments
 (0)