From 78e398856a9a8bb929a596aa5b2fa148403d56e4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 7 May 2020 21:58:23 -0500 Subject: image: Add functional TAR backend --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 76b191c..a12e125 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,10 @@ else() -Werror) endif() +if(POLICY CMP0100) + cmake_policy(SET CMP0100 NEW) +endif() + option(BUILD_TOOLS "Enable building of tools (Validator, Simulator, etc)" ON) option(BUILD_UI "Enable user interface" ON) @@ -85,6 +89,16 @@ ELSE(INSTALL) ENDIF(INSTALL) +if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES) + SET(FS_LIBRARY stdc++fs) + add_definitions(-DFS_IS_STDCXX) +ELSE() + find_package(Boost REQUIRED COMPONENTS filesystem) + SET(FS_LIBRARY ${Boost_FILESYSTEM_LIBRARY}) + add_definitions(-DFS_IS_BOOST) +ENDIF() + + add_subdirectory(hscript) add_subdirectory(owner) IF(BUILD_TOOLS) -- cgit v1.2.3-60-g2f50