Merge pull request #73 from fastfloat/dlemire/checking_issue72

Checking issue 72
This commit is contained in:
Daniel Lemire 2021-05-18 09:15:01 -04:00 committed by GitHub
commit 3fb44a80c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 39 additions and 0 deletions

View File

@ -24,4 +24,6 @@ jobs:
ctest --output-on-failure &&
cmake --install . &&
cd ../tests/installation_tests/find &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build . &&
cd ../../issue72_installation &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .

View File

@ -24,4 +24,6 @@ jobs:
ctest --output-on-failure &&
cmake --install . &&
cd ../tests/installation_tests/find &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .
cd ../../issue72_installation &&
mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=../../../build/destination .. && cmake --build .

View File

@ -62,3 +62,4 @@ if (FASTFLOAT_EXHAUSTIVE)
fast_float_add_cpp_test(random64)
endif(FASTFLOAT_EXHAUSTIVE)
add_subdirectory(build_tests)

View File

@ -0,0 +1 @@
add_subdirectory(issue72)

View File

@ -0,0 +1,2 @@
add_executable(issue72 main.cpp foo.cpp)
target_link_libraries(issue72 PUBLIC fast_float)

View File

@ -0,0 +1,2 @@
#include "test.h"
void foo() { }

View File

@ -0,0 +1,2 @@
#include "test.h"
int main() { return 0; }

View File

@ -0,0 +1,2 @@
#pragma once
#include "fast_float/fast_float.h"

View File

@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 3.15)
project(test_simdjson_install VERSION 0.1.0 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(FastFloat REQUIRED)
file(WRITE test.h "
#pragma once
#include \"fast_float/fast_float.h\"")
file(WRITE main.cpp "
#include \"test.h\"
int main() { return 0; }")
file(WRITE foo.cpp "
#include \"test.h\"
void foo() { }")
add_executable(issue72 main.cpp main.cpp)
target_link_libraries(issue72 PUBLIC FastFloat::fast_float)