diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-05-12 00:07:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 00:07:25 (GMT) |
commit | ec4c67733fa55771edc8102a13adc2ab0b7522ad (patch) | |
tree | c81ae47e280a774531858465181917078bc3159a /config | |
parent | 89c1050d10f5c8b92404b8748d56244a32c25fcf (diff) | |
download | hdf5-ec4c67733fa55771edc8102a13adc2ab0b7522ad.zip hdf5-ec4c67733fa55771edc8102a13adc2ab0b7522ad.tar.gz hdf5-ec4c67733fa55771edc8102a13adc2ab0b7522ad.tar.bz2 |
Fix CMake generator expression syntax (#2941)
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/HDFMacros.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/cmake/HDFMacros.cmake b/config/cmake/HDFMacros.cmake index 9d61d92..7f94d59 100644 --- a/config/cmake/HDFMacros.cmake +++ b/config/cmake/HDFMacros.cmake @@ -77,7 +77,7 @@ macro (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent) if (${target_type} MATCHES "SHARED") set (targetfilename $<TARGET_PDB_FILE:${libtarget}>) else () - get_property (target_name TARGET ${libtarget} PROPERTY $<IF:$<OR:$<CONFIG:Debug>,$<CONFIG:Developer>>,OUTPUT_NAME_DEBUG,OUTPUT_NAME_RELWITHDEBINFO>) + get_property (target_name TARGET ${libtarget} PROPERTY "$<IF:$<OR:$<CONFIG:Debug>,$<CONFIG:Developer>>,OUTPUT_NAME_DEBUG,OUTPUT_NAME_RELWITHDEBINFO>") set (targetfilename $<TARGET_FILE_DIR:${libtarget}>/${target_name}.pdb) endif () install ( @@ -213,8 +213,8 @@ endmacro () #------------------------------------------------------------------------------- macro (TARGET_C_PROPERTIES wintarget libtype) target_compile_options(${wintarget} PRIVATE - $<$<C_COMPILER_ID:MSVC>:${WIN_COMPILE_FLAGS}> - $<$<CXX_COMPILER_ID:MSVC>:${WIN_COMPILE_FLAGS}> + "$<$<C_COMPILER_ID:MSVC>:${WIN_COMPILE_FLAGS}>" + "$<$<CXX_COMPILER_ID:MSVC>:${WIN_COMPILE_FLAGS}>" ) if(MSVC) set_property(TARGET ${wintarget} APPEND PROPERTY LINK_FLAGS "${WIN_LINK_FLAGS}") |