mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 06:51:48 +08:00
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 484e76b..adbcd10 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -111,6 +111,9 @@ if(MSVC)
|
|
add_definitions(-D_AFX_SECURE_NO_WARNINGS)
|
|
endif()
|
|
|
|
+# For variables in $<INSTALL_INTERFACE:...>
|
|
+include(GNUInstallDirs)
|
|
+
|
|
# -- Check dependencies --------------------------------------------------------------------------------
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} )
|
|
@@ -489,7 +492,7 @@ endif()
|
|
|
|
target_include_directories(raw
|
|
PUBLIC
|
|
- $<INSTALL_INTERFACE:libraw>
|
|
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libraw>
|
|
$<BUILD_INTERFACE:${LIBRAW_PATH}>)
|
|
|
|
target_link_libraries(raw PUBLIC ${MATH_LIBRARY})
|
|
@@ -558,7 +561,7 @@ set_target_properties(raw_r PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
target_link_libraries(raw_r PUBLIC ${MATH_LIBRARY})
|
|
target_include_directories(raw_r
|
|
PUBLIC
|
|
- $<INSTALL_INTERFACE:libraw>
|
|
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/libraw>
|
|
$<BUILD_INTERFACE:${LIBRAW_PATH}>)
|
|
|
|
if(WIN32)
|