diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2024-01-04 18:06:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 18:06:36 (GMT) |
commit | a00d62f77a715b0b4b862a594d1d85f4a0e5296c (patch) | |
tree | a71df5a1d896a4db7afa61cf3632768ae960c4fd /config/cmake | |
parent | de3ee47a44ffa7876c1e823eef6045f7fde8e165 (diff) | |
download | hdf5-a00d62f77a715b0b4b862a594d1d85f4a0e5296c.zip hdf5-a00d62f77a715b0b4b862a594d1d85f4a0e5296c.tar.gz hdf5-a00d62f77a715b0b4b862a594d1d85f4a0e5296c.tar.bz2 |
Use props for includes and remove global includes (#3921)
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/LIBAEC/CMakeLists.txt | 4 | ||||
-rw-r--r-- | config/cmake/ZLIB/CMakeLists.txt | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/config/cmake/LIBAEC/CMakeLists.txt b/config/cmake/LIBAEC/CMakeLists.txt index a819587..e118438 100644 --- a/config/cmake/LIBAEC/CMakeLists.txt +++ b/config/cmake/LIBAEC/CMakeLists.txt @@ -146,7 +146,9 @@ configure_file (${LIBAEC_RESOURCES_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/ #----------------------------------------------------------------------------- # All libs/tests/examples need the main include directories #----------------------------------------------------------------------------- -INCLUDE_DIRECTORIES (${LIBAEC_BINARY_DIR} ${LIBAEC_SOURCE_DIR}/src ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) +set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES + "${LIBAEC_BINARY_DIR};${LIBAEC_SOURCE_DIR}/src;${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" +) #----------------------------------------------------------------------------- # Define LIBAEC Library diff --git a/config/cmake/ZLIB/CMakeLists.txt b/config/cmake/ZLIB/CMakeLists.txt index d4b3924..09f67b0 100644 --- a/config/cmake/ZLIB/CMakeLists.txt +++ b/config/cmake/ZLIB/CMakeLists.txt @@ -146,7 +146,9 @@ endif () #----------------------------------------------------------------------------- # All libs/tests/examples need the main include directories #----------------------------------------------------------------------------- -INCLUDE_DIRECTORIES (${ZLIB_BINARY_DIR} ${ZLIB_SOURCE_DIR} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) +set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES + "${ZLIB_BINARY_DIR};${ZLIB_SOURCE_DIR};${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" +) #============================================================================ # zlib |