summaryrefslogtreecommitdiffstats
path: root/fortran/examples
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-05-03 17:03:46 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-05-03 17:03:46 (GMT)
commit866337babe20fa3cd003f7c89b5ece7e60f5b0b2 (patch)
tree231869cc0a43acee45d05ced9a71064ae39baae2 /fortran/examples
parent1d1333ed6b51ef94862c50fe35fa52bea7756139 (diff)
downloadhdf5-866337babe20fa3cd003f7c89b5ece7e60f5b0b2.zip
hdf5-866337babe20fa3cd003f7c89b5ece7e60f5b0b2.tar.gz
hdf5-866337babe20fa3cd003f7c89b5ece7e60f5b0b2.tar.bz2
Missed a command revert
Diffstat (limited to 'fortran/examples')
-rw-r--r--fortran/examples/CMakeLists.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/fortran/examples/CMakeLists.txt b/fortran/examples/CMakeLists.txt
index db1880b..c073177 100644
--- a/fortran/examples/CMakeLists.txt
+++ b/fortran/examples/CMakeLists.txt
@@ -76,12 +76,15 @@ foreach (example ${examples})
PRIVATE
${HDF5_F90_LIBSH_TARGET} ${HDF5_LIBSH_TARGET}
)
- set_property(TARGET f90_ex_${example}-shared APPEND PROPERTY
- LINK_FLAGS $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:"-SUBSYSTEM:CONSOLE">
- )
- set_property(TARGET f90_ex_${example}-shared APPEND PROPERTY
- LINK_FLAGS $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_LINK_FLAGS}>
- )
+# set_property(TARGET f90_ex_${example}-shared APPEND PROPERTY
+# LINK_FLAGS $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:"-SUBSYSTEM:CONSOLE">
+# )
+# set_property(TARGET f90_ex_${example}-shared APPEND PROPERTY
+# LINK_FLAGS $<$<STREQUAL:"x${CMAKE_Fortran_SIMULATE_ID}","xMSVC">:${WIN_LINK_FLAGS}>
+# )
+ if(MSVC)
+ set_property(TARGET f90_ex_${example}-shared APPEND PROPERTY LINK_FLAGS "-SUBSYSTEM:CONSOLE;${WIN_LINK_FLAGS}")
+ endif()
set_target_properties (f90_ex_${example}-shared PROPERTIES
LINKER_LANGUAGE Fortran
FOLDER examples/fortran