From f01dc9192a031e193e464a1f661916ad6bed3b16 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 2 May 2019 08:39:07 -0400 Subject: [PATCH] CMakeLists: Add a namespace to the export Avoids potentially dumping boost, fmt, and xbyak targets into a top-level namespace without any qualification, which can lead to build errors in projects that already make use of them. --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 44126f72..c3c748cd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -294,4 +294,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows") target_compile_definitions(dynarmic PRIVATE FMT_USE_WINDOWS_H=0) endif() -export(TARGETS dynarmic boost fmt xbyak FILE "dynarmic-config.cmake") +export( + TARGETS dynarmic boost fmt xbyak + NAMESPACE dynarmic:: + FILE "dynarmic-config.cmake" +)