From cde02f79cc7e4104d0a78f6d1876a0bc8d4dcc07 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Wed, 2 Sep 2020 12:36:48 +0200 Subject: [PATCH] add proper include guard to tools, fixes #57 --- cmake/tools.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmake/tools.cmake b/cmake/tools.cmake index bba1d86..1691f12 100644 --- a/cmake/tools.cmake +++ b/cmake/tools.cmake @@ -1,10 +1,7 @@ # this file contains a list of tools that can be activated and downloaded on-demand each tool is # enabled during configuration by passing an additional `-DUSE_=` argument to CMake -# only activate tools for top level project -if(NOT PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) - return() -endif() +include_guard(DIRECTORY) include(${CMAKE_CURRENT_LIST_DIR}/CPM.cmake)