From 49b59c8a1507ca7ce5bbc0b9a440da8a4b67d6c7 Mon Sep 17 00:00:00 2001 From: Mikhail Komarov Date: Tue, 13 Aug 2019 13:16:10 +0300 Subject: [PATCH] CMake tests build configuration updated. --- test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 293ad93ab..4c0d07457 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -78,8 +78,10 @@ add_custom_target(multiprecision_test_suite_compile_fail) # HACK: Workaround broken includes file(GLOB TEST_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp ${CMAKE_CURRENT_SOURCE_DIR}/*.ipp) +set(CMAKE_INCLUDE_CURRENT_DIR TRUE) foreach(HEADER ${TEST_HEADERS}) - configure_file(${HEADER} ${CMAKE_CURRENT_BINARY_DIR}/include/libs/multiprecision/test/${HEADER} @ONLY) + configure_file(${HEADER} ${CMAKE_CURRENT_BINARY_DIR}/libs/multiprecision/test/${HEADER} + @ONLY) endforeach() add_library(multiprecision_test_settings INTERFACE)