Add fmt prefix to includes (#332)

Technically it is not necessary, but prevents errors when people add the
fmt directory itself rather than its parent to includes.
This commit is contained in:
Victor Zverovich
2016-05-22 16:42:44 -07:00
parent e2a332e5df
commit e160c2b79a
8 changed files with 9 additions and 7 deletions
+2
View File
@@ -111,6 +111,7 @@ endif ()
check_cxx_compiler_flag(-fno-exceptions HAVE_FNO_EXCEPTIONS_FLAG)
if (HAVE_FNO_EXCEPTIONS_FLAG)
add_library(noexception-test ../fmt/format.cc)
target_include_directories(noexception-test PRIVATE ${PROJECT_SOURCE_DIR})
target_compile_options(noexception-test PRIVATE -fno-exceptions)
endif ()
@@ -118,6 +119,7 @@ if (FMT_PEDANTIC)
# Test that the library compiles without windows.h.
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_library(no-windows-h-test ../fmt/format.cc)
target_include_directories(no-windows-h-test PRIVATE ${PROJECT_SOURCE_DIR})
target_compile_definitions(no-windows-h-test PRIVATE FMT_USE_WINDOWS_H=0)
endif ()