From b2647468e2642558ff1fffe233c623d97f88a830 Mon Sep 17 00:00:00 2001 From: Stefano Fiorentino Date: Mon, 6 Apr 2020 16:15:36 +0200 Subject: [PATCH] avoid to install .cpp with BUILD_UVW_LIBS Signed-off-by: Stefano Fiorentino --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f759f762..18e0ba9d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,8 @@ include(GNUInstallDirs) if(BUILD_UVW_LIBS) fetch_libuv() add_subdirectory(src) + + file(GLOB HEADERS src/uvw/*.h src/uvw/*.hpp) else() add_library(uvw INTERFACE) add_library(uvw::uvw ALIAS uvw) @@ -124,14 +126,14 @@ else() if(HAS_LIBCPP) target_compile_options(uvw BEFORE INTERFACE -stdlib=libc++) endif() + + file(GLOB HEADERS src/uvw/*.h src/uvw/*.hpp src/uvw/*.cpp) endif() # # Install targets # -file(GLOB HEADERS src/uvw/*.h src/uvw/*.hpp src/uvw/*.cpp) - install( FILES ${HEADERS} COMPONENT ${PROJECT_NAME}