CMake: Skip custom_dir_EXIF_231 test on shared builds to avoid issues on Windows

This commit is contained in:
Even Rouault 2020-03-07 17:37:42 +01:00
parent d83f5ce943
commit e95584d3b8
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -204,10 +204,12 @@ add_test(NAME "rational_precision2double"
COMMAND "rational_precision2double")
endif()
if(NOT BUILD_SHARED_LIBS)
add_executable(custom_dir_EXIF_231 custom_dir_EXIF_231.c)
target_link_libraries(custom_dir_EXIF_231 tiff port)
add_test(NAME "custom_dir_EXIF_231"
COMMAND "custom_dir_EXIF_231")
endif()
add_executable(defer_strile_loading defer_strile_loading.c)
target_link_libraries(defer_strile_loading tiff port)