mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-13 09:36:32 +00:00
Only run compile-test if FMT_EXTRA_TESTS is set
These tests can be quite time-consuming especially on Windows
This commit is contained in:
parent
0e5c8e5395
commit
2da08f21dd
@ -82,9 +82,11 @@ if (HAVE_FNO_EXCEPTIONS_FLAG)
|
|||||||
PROPERTIES COMPILE_FLAGS -fno-exceptions)
|
PROPERTIES COMPILE_FLAGS -fno-exceptions)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_test(compile-test ${CMAKE_CTEST_COMMAND}
|
if (FMT_EXTRA_TESTS)
|
||||||
--build-and-test
|
add_test(compile-test ${CMAKE_CTEST_COMMAND}
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/compile-test"
|
--build-and-test
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/compile-test"
|
"${CMAKE_CURRENT_SOURCE_DIR}/compile-test"
|
||||||
--build-generator ${CMAKE_GENERATOR}
|
"${CMAKE_CURRENT_BINARY_DIR}/compile-test"
|
||||||
--build-makeprogram ${CMAKE_MAKE_PROGRAM})
|
--build-generator ${CMAKE_GENERATOR}
|
||||||
|
--build-makeprogram ${CMAKE_MAKE_PROGRAM})
|
||||||
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user