Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
1acfd07f
Commit
1acfd07f
authored
Jul 16, 2016
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround broken MinGW installation on AppVeyor (#355)
parent
d4885cea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
support/appveyor.yml
support/appveyor.yml
+4
-0
test/CMakeLists.txt
test/CMakeLists.txt
+11
-3
No files found.
support/appveyor.yml
View file @
1acfd07f
...
...
@@ -20,3 +20,7 @@ build_script:
on_failure
:
-
appveyor PushArtifact Testing/Temporary/LastTest.log
-
appveyor AddTest test
# Uncomment this to debug AppVeyor failures.
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
test/CMakeLists.txt
View file @
1acfd07f
...
...
@@ -56,11 +56,19 @@ if (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
set
(
PEDANTIC_COMPILE_FLAGS -Wall -Wextra -Wno-long-long -Wno-variadic-macros
)
endif
()
function
(
add_fmt_executable name
)
add_executable
(
${
name
}
${
ARGN
}
)
if
(
MINGW
)
target_link_libraries
(
${
name
}
-static-libgcc -static-libstdc++
)
endif
()
endfunction
()
# Adds a test.
# Usage: add_fmt_test(name srcs...)
function
(
add_fmt_test name
)
add_executable
(
${
name
}
${
name
}
.cc
${
ARGN
}
)
add_
fmt_
executable
(
${
name
}
${
name
}
.cc
${
ARGN
}
)
target_link_libraries
(
${
name
}
test-main
)
# define if certain c++ features can be used
target_compile_definitions
(
${
name
}
PRIVATE
FMT_USE_TYPE_TRAITS=$<BOOL:
${
SUPPORTS_TYPE_TRAITS
}
>
...
...
@@ -89,7 +97,7 @@ if (FMT_PEDANTIC AND MSVC)
endif
()
if
(
HAVE_OPEN
)
add_executable
(
posix-mock-test
add_
fmt_
executable
(
posix-mock-test
posix-mock-test.cc ../fmt/format.cc
${
TEST_MAIN_SRC
}
)
target_include_directories
(
posix-mock-test PRIVATE
${
PROJECT_SOURCE_DIR
}
)
target_compile_definitions
(
posix-mock-test PRIVATE FMT_USE_FILE_DESCRIPTORS=1
)
...
...
@@ -98,7 +106,7 @@ if (HAVE_OPEN)
add_fmt_test
(
posix-test
)
endif
()
add_executable
(
header-only-test
add_
fmt_
executable
(
header-only-test
header-only-test.cc header-only-test2.cc test-main.cc
)
target_link_libraries
(
header-only-test gmock
)
if
(
TARGET fmt-header-only
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment