diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-05-05 20:57:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 20:57:40 (GMT) |
commit | 4b228ec6af3c53956fba7822c0ae808d3d3e2cb3 (patch) | |
tree | 134559dc3c077697845f0158e9da73162210ff2f /testpar/CMakeLists.txt | |
parent | cc4d63b026dd0c392adc28e90a14eec47cb10bdd (diff) | |
download | hdf5-4b228ec6af3c53956fba7822c0ae808d3d3e2cb3.zip hdf5-4b228ec6af3c53956fba7822c0ae808d3d3e2cb3.tar.gz hdf5-4b228ec6af3c53956fba7822c0ae808d3d3e2cb3.tar.bz2 |
Fix CMake generator expression syntax (#2909)
Diffstat (limited to 'testpar/CMakeLists.txt')
-rw-r--r-- | testpar/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testpar/CMakeLists.txt b/testpar/CMakeLists.txt index 6bb5fa6..7894cff 100644 --- a/testpar/CMakeLists.txt +++ b/testpar/CMakeLists.txt @@ -26,7 +26,7 @@ add_executable (testphdf5 ${testphdf5_SOURCES}) target_compile_options(testphdf5 PRIVATE "${HDF5_CMAKE_C_FLAGS}") target_compile_definitions(testphdf5 PRIVATE - $<$<CONFIG:Developer>:${HDF5_DEVELOPER_DEFS}> + "$<$<CONFIG:Developer>:${HDF5_DEVELOPER_DEFS}>" ) target_include_directories (testphdf5 PRIVATE "${HDF5_SRC_INCLUDE_DIRS};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>" @@ -56,7 +56,7 @@ macro (ADD_H5P_EXE file) target_compile_options(${file} PRIVATE "${HDF5_CMAKE_C_FLAGS}") target_compile_definitions(${file} PRIVATE - $<$<CONFIG:Developer>:${HDF5_DEVELOPER_DEFS}> + "$<$<CONFIG:Developer>:${HDF5_DEVELOPER_DEFS}>" ) target_include_directories (${file} PRIVATE "${HDF5_SRC_INCLUDE_DIRS};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>" @@ -65,13 +65,13 @@ macro (ADD_H5P_EXE file) TARGET_C_PROPERTIES (${file} STATIC) target_link_libraries (${file} PRIVATE ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:MPI::MPI_C>" - $<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib> + "$<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>" ) else () TARGET_C_PROPERTIES (${file} SHARED) target_link_libraries (${file} PRIVATE ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:MPI::MPI_C>" - $<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib> + "$<$<OR:$<PLATFORM_ID:Windows>,$<PLATFORM_ID:MinGW>>:ws2_32.lib>" ) endif () set_target_properties (${file} PROPERTIES FOLDER test/par) |