mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-30 19:09:22 +08:00
Apply suggested format changes
This commit is contained in:
parent
78cedd81a4
commit
7605e0ba7c
@ -308,7 +308,8 @@ else ()
|
||||
message(WARNING "Feature cxx_std_11 is unknown for the CXX compiler")
|
||||
endif ()
|
||||
|
||||
check_cxx_source_compiles([[
|
||||
check_cxx_source_compiles(
|
||||
[[
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
// Use stdout just to prove we can pass a FILE* to it
|
||||
@ -316,9 +317,11 @@ check_cxx_source_compiles([[
|
||||
funlockfile(stdout);
|
||||
return 0;
|
||||
}
|
||||
]] HAVE_FLOCKFILE_COMPILE_TEST)
|
||||
target_compile_definitions(fmt PRIVATE
|
||||
FMT_HAVE_FLOCKFILE_COMPILE_TEST=$<BOOL:HAVE_FLOCKFILE_COMPILE_TEST>)
|
||||
]]
|
||||
HAVE_FLOCKFILE_COMPILE_TEST)
|
||||
target_compile_definitions(
|
||||
fmt
|
||||
PRIVATE FMT_HAVE_FLOCKFILE_COMPILE_TEST=$<BOOL:HAVE_FLOCKFILE_COMPILE_TEST>)
|
||||
|
||||
# Set FMT_LIB_NAME for pkg-config fmt.pc. We cannot use the OUTPUT_NAME target
|
||||
# property because it's not set by default.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user