From c38790bc4dfe459845212fda22b16e5f1809f157 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 18 May 2021 08:59:20 -0400 Subject: [PATCH] Checking issue 72 --- tests/CMakeLists.txt | 1 + tests/build_tests/CMakeLists.txt | 1 + tests/build_tests/issue72/CMakeLists.txt | 2 ++ tests/build_tests/issue72/foo.cpp | 2 ++ tests/build_tests/issue72/main.cpp | 2 ++ tests/build_tests/issue72/test.h | 2 ++ 6 files changed, 10 insertions(+) create mode 100644 tests/build_tests/CMakeLists.txt create mode 100644 tests/build_tests/issue72/CMakeLists.txt create mode 100644 tests/build_tests/issue72/foo.cpp create mode 100644 tests/build_tests/issue72/main.cpp create mode 100644 tests/build_tests/issue72/test.h diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 713c663..e370559 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -62,3 +62,4 @@ if (FASTFLOAT_EXHAUSTIVE) fast_float_add_cpp_test(random64) endif(FASTFLOAT_EXHAUSTIVE) +add_subdirectory(build_tests) \ No newline at end of file diff --git a/tests/build_tests/CMakeLists.txt b/tests/build_tests/CMakeLists.txt new file mode 100644 index 0000000..da762eb --- /dev/null +++ b/tests/build_tests/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(issue72) \ No newline at end of file diff --git a/tests/build_tests/issue72/CMakeLists.txt b/tests/build_tests/issue72/CMakeLists.txt new file mode 100644 index 0000000..efe39a2 --- /dev/null +++ b/tests/build_tests/issue72/CMakeLists.txt @@ -0,0 +1,2 @@ +add_executable(issue72 main.cpp foo.cpp) +target_link_libraries(issue72 PUBLIC fast_float) \ No newline at end of file diff --git a/tests/build_tests/issue72/foo.cpp b/tests/build_tests/issue72/foo.cpp new file mode 100644 index 0000000..cbe2412 --- /dev/null +++ b/tests/build_tests/issue72/foo.cpp @@ -0,0 +1,2 @@ +#include "test.h" +void foo() { } \ No newline at end of file diff --git a/tests/build_tests/issue72/main.cpp b/tests/build_tests/issue72/main.cpp new file mode 100644 index 0000000..3d46c0a --- /dev/null +++ b/tests/build_tests/issue72/main.cpp @@ -0,0 +1,2 @@ +#include "test.h" +int main() { return 0; } \ No newline at end of file diff --git a/tests/build_tests/issue72/test.h b/tests/build_tests/issue72/test.h new file mode 100644 index 0000000..550a31b --- /dev/null +++ b/tests/build_tests/issue72/test.h @@ -0,0 +1,2 @@ +#pragma once +#include "fast_float/fast_float.h" \ No newline at end of file