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
67e196ea
Commit
67e196ea
authored
Dec 19, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test libraries static
parent
fdecd5b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/CMakeLists.txt
test/CMakeLists.txt
+2
-2
No files found.
test/CMakeLists.txt
View file @
67e196ea
set
(
TEST_MAIN_SRC test-main.cc gtest-extra.cc gtest-extra.h util.cc
)
set
(
TEST_MAIN_SRC test-main.cc gtest-extra.cc gtest-extra.h util.cc
)
add_library
(
test-main
${
TEST_MAIN_SRC
}
)
add_library
(
test-main
STATIC
${
TEST_MAIN_SRC
}
)
target_link_libraries
(
test-main gmock
)
target_link_libraries
(
test-main gmock
)
# Adds a test.
# Adds a test.
...
@@ -67,7 +67,7 @@ target_link_libraries(header-only-test gmock)
...
@@ -67,7 +67,7 @@ target_link_libraries(header-only-test gmock)
# Test that the library can be compiled with exceptions disabled.
# Test that the library can be compiled with exceptions disabled.
check_cxx_compiler_flag
(
-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG
)
check_cxx_compiler_flag
(
-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG
)
if
(
HAVE_FNO_EXCEPTIONS_FLAG
)
if
(
HAVE_FNO_EXCEPTIONS_FLAG
)
add_library
(
noexception-test ../format.cc
)
add_library
(
noexception-test
STATIC
../format.cc
)
set_target_properties
(
noexception-test
set_target_properties
(
noexception-test
PROPERTIES COMPILE_FLAGS -fno-exceptions
)
PROPERTIES COMPILE_FLAGS -fno-exceptions
)
endif
()
endif
()
...
...
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