From 45f5acae7d9a1ba776c9419a5ec2b960461658ad Mon Sep 17 00:00:00 2001 From: Jorrit Wronski Date: Wed, 15 Nov 2017 14:44:13 +0100 Subject: [PATCH] Disable the interface library linking --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a338af..b46cfe9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,7 +46,7 @@ endif() ## Build targets for the interface library ## add_library(inja INTERFACE) -target_include_directories(inja INTERFACE +target_include_directories(inja INTERFACE $ $ ) @@ -55,9 +55,9 @@ if(HUNTER_ENABLED) # Use Hunter to manage dependencies hunter_add_package(nlohmann_json) find_package(nlohmann_json CONFIG REQUIRED) # Add dependencies to target - target_link_libraries(inja INTERFACE nlohmann_json) + target_link_libraries(inja nlohmann_json) else() - target_include_directories(inja INTERFACE + target_include_directories(inja INTERFACE $ $ )