From 25c9180e4eab4c8cefc1af3fd4f83f0a8519d554 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 9 Dec 2019 05:38:25 +0300 Subject: fix CMake files It used to work, but since a few commits ago (with the introduction of cmake_minimum_required, I suspect), some libraries couldn't be found by the executables. It makes a lot of sense actually, since the service library is referenced in the headers, which are referenced in the utils. --- um/wrappers/simple/CMakeLists.txt | 2 +- um/wrappers/special/nt_namespace/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'um/wrappers') diff --git a/um/wrappers/simple/CMakeLists.txt b/um/wrappers/simple/CMakeLists.txt index 85bc34b..84f40c5 100644 --- a/um/wrappers/simple/CMakeLists.txt +++ b/um/wrappers/simple/CMakeLists.txt @@ -2,6 +2,6 @@ file(GLOB_RECURSE simple_include "include/*.hpp") file(GLOB simple_src "src/*.cpp") add_library(simple ${simple_src} ${simple_include}) target_include_directories(simple PUBLIC include/) -target_link_libraries(simple PRIVATE service) +target_link_libraries(simple PUBLIC service) add_subdirectory(utils) diff --git a/um/wrappers/special/nt_namespace/CMakeLists.txt b/um/wrappers/special/nt_namespace/CMakeLists.txt index c9c6395..dc99170 100644 --- a/um/wrappers/special/nt_namespace/CMakeLists.txt +++ b/um/wrappers/special/nt_namespace/CMakeLists.txt @@ -2,6 +2,6 @@ file(GLOB_RECURSE nt_namespace_include "include/*.hpp") file(GLOB nt_namespace_src "src/*.cpp") add_library(nt_namespace ${nt_namespace_src} ${nt_namespace_include}) target_include_directories(nt_namespace PUBLIC include/) -target_link_libraries(nt_namespace PRIVATE service) +target_link_libraries(nt_namespace PUBLIC service) add_subdirectory(utils) -- cgit v1.2.3