From da23edd24eba6433baeafec5ef8f4fa1c59a8307 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 20 Mar 2014 16:18:30 -0500 Subject: [svn-r24851] example causes modal permission dialog to popup on windows. build but do not execute. --- examples/CMakeLists.txt | 5 ++--- examples/CMakeTests.cmake | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 38aa241..fe8216d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -44,14 +44,13 @@ foreach (example ${examples}) set_target_properties (${example} PROPERTIES FOLDER examples) endforeach (example ${examples}) -### Windows pops up a modal permission dialog on this test -if (H5_HAVE_PARALLEL AND NOT WIN32) +if (H5_HAVE_PARALLEL) add_executable (ph5example ${HDF5_EXAMPLES_SOURCE_DIR}/ph5example.c) TARGET_NAMING (ph5example ${LIB_TYPE}) TARGET_C_PROPERTIES (ph5example " " " ") target_link_libraries (ph5example ${HDF5_LIB_TARGET}) set_target_properties (ph5example PROPERTIES FOLDER examples) -endif (H5_HAVE_PARALLEL AND NOT WIN32) +endif (H5_HAVE_PARALLEL) if (BUILD_TESTING) include (CMakeTests.cmake) diff --git a/examples/CMakeTests.cmake b/examples/CMakeTests.cmake index 2a20fd8..5a756c8 100644 --- a/examples/CMakeTests.cmake +++ b/examples/CMakeTests.cmake @@ -56,10 +56,11 @@ set (last_test "EXAMPLES-${example}") endforeach (example ${examples}) - if (H5_HAVE_PARALLEL) +### Windows pops up a modal permission dialog on this test + if (H5_HAVE_PARALLEL AND NOT WIN32) add_test (NAME EXAMPLES-ph5example COMMAND $) if (NOT "${last_test}" STREQUAL "") set_tests_properties (EXAMPLES-ph5example PROPERTIES DEPENDS ${last_test}) endif (NOT "${last_test}" STREQUAL "") set (last_test "EXAMPLES-ph5example") - endif (H5_HAVE_PARALLEL) + endif (H5_HAVE_PARALLEL AND NOT WIN32) -- cgit v0.12