We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04cfa89 commit 11c1e8dCopy full SHA for 11c1e8d
CMakeLists.txt
@@ -384,11 +384,15 @@ if ( ENABLE_TESTS )
384
endif ()
385
386
# Check output for differences
387
+ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.14)
388
+ set( JSON_FORTRAN_COMPARE_FLAG "--ignore-eol")
389
+ endif()
390
+
391
foreach ( JSON_FILE ${EXPECTED_OUTPUTS} )
392
get_filename_component (OUTPUT ${JSON_FILE} NAME )
393
add_test ( NAME regression-${OUTPUT}
394
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/files"
- COMMAND ${CMAKE_COMMAND} -E compare_files --ignore-eol ${OUTPUT} expected-outputs/${OUTPUT} )
395
+ COMMAND ${CMAKE_COMMAND} -E compare_files ${JSON_FORTRAN_COMPARE_FLAG} ${OUTPUT} expected-outputs/${OUTPUT} )
396
set_property ( TEST regression-${OUTPUT}
397
APPEND
398
PROPERTY
0 commit comments