summaryrefslogtreecommitdiffstats
path: root/c++/src/CMakeLists.txt
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 /c++/src/CMakeLists.txt
parent84e27c4af1b57160641072e9e0cb359c358e67e1 (diff)
downloadhdf5-425408b5a13bdb4bab369846cd9f9108b058cb82.zip
hdf5-425408b5a13bdb4bab369846cd9f9108b058cb82.tar.gz
hdf5-425408b5a13bdb4bab369846cd9f9108b058cb82.tar.bz2
[svn-r24895] Add INTERFACE properties to libs
Diffstat (limited to 'c++/src/CMakeLists.txt')
-rw-r--r--c++/src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
index 7054b04..7a48260 100644
--- a/c++/src/CMakeLists.txt
+++ b/c++/src/CMakeLists.txt
@@ -88,7 +88,10 @@ TARGET_C_PROPERTIES (${HDF5_CPP_LIB_TARGET} " " " ")
target_link_libraries (${HDF5_CPP_LIB_TARGET} ${HDF5_LIB_TARGET})
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_CPP_LIB_TARGET}")
H5_SET_LIB_OPTIONS (${HDF5_CPP_LIB_TARGET} ${HDF5_CPP_LIB_NAME} ${LIB_TYPE})
-set_target_properties (${HDF5_CPP_LIB_TARGET} PROPERTIES FOLDER libraries/cpp)
+set_target_properties (${HDF5_CPP_LIB_TARGET} PROPERTIES
+ FOLDER libraries/cpp
+ INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
+)
#-----------------------------------------------------------------------------
# Add file(s) to CMake Install