diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-10-14 04:41:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 04:41:17 (GMT) |
commit | 405b0c62f8d7752d55e677b6b2868619bccade78 (patch) | |
tree | bbb534c24163531b59f282b7e77458a894ac67aa /hl/fortran/examples/CMakeLists.txt | |
parent | ffc5fddeb105d2292d444993a3719be1f753f95b (diff) | |
download | hdf5-405b0c62f8d7752d55e677b6b2868619bccade78.zip hdf5-405b0c62f8d7752d55e677b6b2868619bccade78.tar.gz hdf5-405b0c62f8d7752d55e677b6b2868619bccade78.tar.bz2 |
Correct fortran CMake generator expressions (#3670)
Diffstat (limited to 'hl/fortran/examples/CMakeLists.txt')
-rw-r--r-- | hl/fortran/examples/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/fortran/examples/CMakeLists.txt b/hl/fortran/examples/CMakeLists.txt index caa5e78..7afe5fc 100644 --- a/hl/fortran/examples/CMakeLists.txt +++ b/hl/fortran/examples/CMakeLists.txt @@ -11,10 +11,10 @@ foreach (example ${examples}) target_compile_options(hl_f90_ex_${example} PRIVATE "${HDF5_CMAKE_Fortran_FLAGS}" - $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_COMPILE_FLAGS}> + "$<$<STREQUAL:x${CMAKE_Fortran_SIMULATE_ID},xMSVC>:${WIN_COMPILE_FLAGS}>" ) -# set_property(TARGET hl_f90_ex_${example} APPEND PROPERTY LINK_FLAGS $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:"-SUBSYSTEM:CONSOLE">) -# set_property(TARGET hl_f90_ex_${example} APPEND PROPERTY LINK_FLAGS $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_LINK_FLAGS}>) +# set_property(TARGET hl_f90_ex_${example} APPEND PROPERTY LINK_FLAGS "$<$<STREQUAL:x${CMAKE_Fortran_SIMULATE_ID},xMSVC>:-SUBSYSTEM:CONSOLE>") +# set_property(TARGET hl_f90_ex_${example} APPEND PROPERTY LINK_FLAGS "$<$<STREQUAL:x${CMAKE_Fortran_SIMULATE_ID},xMSVC>:${WIN_LINK_FLAGS}>") if(MSVC) set_property(TARGET hl_f90_ex_${example} PROPERTY LINK_FLAGS "/SUBSYSTEM:CONSOLE ${WIN_LINK_FLAGS}") endif() |