summaryrefslogtreecommitdiffstats
path: root/hl/c++
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2014-03-25 18:25:53 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2014-03-25 18:25:53 (GMT)
commit425408b5a13bdb4bab369846cd9f9108b058cb82 (patch)
treeb38e4743f52cdd755b6cc996221d1292ca6100a9 /hl/c++
parent84e27c4af1b57160641072e9e0cb359c358e67e1 (diff)
downloadhdf5-425408b5a13bdb4bab369846cd9f9108b058cb82.zip
hdf5-425408b5a13bdb4bab369846cd9f9108b058cb82.tar.gz
hdf5-425408b5a13bdb4bab369846cd9f9108b058cb82.tar.bz2
[svn-r24895] Add INTERFACE properties to libs
Diffstat (limited to 'hl/c++')
-rw-r--r--hl/c++/src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/hl/c++/src/CMakeLists.txt b/hl/c++/src/CMakeLists.txt
index 39c6737..9776f06 100644
--- a/hl/c++/src/CMakeLists.txt
+++ b/hl/c++/src/CMakeLists.txt
@@ -19,7 +19,10 @@ target_link_libraries (
)
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_CPP_LIB_TARGET}")
H5_SET_LIB_OPTIONS (${HDF5_HL_CPP_LIB_TARGET} ${HDF5_HL_CPP_LIB_NAME} ${LIB_TYPE})
-set_target_properties (${HDF5_HL_CPP_LIB_TARGET} PROPERTIES FOLDER libraries/hl)
+set_target_properties (${HDF5_HL_CPP_LIB_TARGET} PROPERTIES
+ FOLDER libraries/hl
+ INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
+)
#-----------------------------------------------------------------------------
# Add file(s) to CMake Install