From 9351e02182127ea3c91195835652dc29cae0ca21 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Tue, 4 Jun 2019 03:02:44 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 251404733 Change-Id: Iaa53a1c14e7818dae4ae247bfefb2cba4498ba4d --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26c2eda..8c985e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,8 +75,12 @@ configure_file(cmake/libunwind_ptrace.h.in external/org_gnu_libunwind/include/libunwind-ptrace.h @ONLY) -# Interface library with basic project settings -add_library(sapi_base INTERFACE) +# Library with basic project settings. The empty file is there to be able to +# define header-only libraries without cumbersome target_sources() hacks. +file(TOUCH sapi_base_force_cxx_linkage.cc) +add_library(sapi_base STATIC + sapi_base_force_cxx_linkage.cc +) add_library(sapi::base ALIAS sapi_base) target_include_directories(sapi_base INTERFACE ${PROJECT_BINARY_DIR}