-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This pull request includes several miscellaneous bugfixes, which (I think) should not introduce any breaking changes: * Fix a gcc `-Wreturn-type` warning in `PowersetAbstractDomain` and `SmallSortedSetAbstractDomain` that causes build failures in downstream projects compiled with `-Werror -Wall`. * Don't add test targets if the CMake variable `BUILD_TESTING` is falsey. * Fix the exported CMake `sparta` target using the wrong directory as the include directory when installed Pull Request resolved: #23 Reviewed By: arnaudvenet Differential Revision: D52111351 Pulled By: arthaud fbshipit-source-id: 97d9a89537ce77f575f0e073b43f5d81eeba6a08
- Loading branch information
1 parent
345a3c5
commit f2f42d0
Showing
4 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
file(GLOB test "*.cpp") | ||
|
||
foreach(testfile ${test}) | ||
# ${testfile} is in the format of SomeTest.cpp | ||
string(REPLACE ".cpp" "_test" no_ext_name ${testfile}) | ||
# ${no_ext_name} is in the format of SomeTest_test | ||
get_filename_component(test_bin ${no_ext_name} NAME) | ||
# ${test_bin} is in the format of SomeTest_test | ||
add_executable(${test_bin} ${testfile}) | ||
target_link_libraries(${test_bin} PRIVATE sparta gmock_main) | ||
add_test(NAME ${testfile} COMMAND ${test_bin}) | ||
endforeach() |