Skip to content

Commit 08fe910

Browse files
committed
respect custom cmake install path for bin/lib/include
1 parent e3d68dc commit 08fe910

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS})
5656
aws_prepare_shared_lib_exports(${PROJECT_NAME})
5757

5858
aws_check_headers(${PROJECT_NAME} ${AWS_HTTP_HEADERS})
59-
install(FILES ${AWS_HTTP_HEADERS} DESTINATION "include/aws/http")
59+
install(FILES ${AWS_HTTP_HEADERS} DESTINATION "${INCLUDE_DIRECTORY}/aws/http")
6060

6161
if (BUILD_SHARED_LIBS)
6262
set (TARGET_DIR "shared")

bin/elasticurl/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
project(elasticurl C)
22

3-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake")
4-
53
file(GLOB ELASTICURL_SRC
64
"*.c"
75
)
@@ -25,5 +23,5 @@ install(TARGETS ${ELASTICURL_PROJECT_NAME}
2523
EXPORT ${ELASTICURL_PROJECT_NAME}-targets
2624
COMPONENT Runtime
2725
RUNTIME
28-
DESTINATION bin
26+
DESTINATION ${RUNTIME_DIRECTORY}
2927
COMPONENT Runtime)

0 commit comments

Comments
 (0)