From 93f11e87bec630af0575a78b875724c7c3c3cc52 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 27 Sep 2020 00:53:19 -0500 Subject: Don't be fooled by fruity compilers --- CMakeLists.txt | 2 +- image/CMakeLists.txt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e0e8c8..4c158e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,7 +84,7 @@ ELSE(INSTALL) ENDIF(INSTALL) -if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES) +if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES AND NOT APPLE) SET(FS_LIBRARY stdc++fs) add_definitions(-DFS_IS_STDCXX) ELSE() diff --git a/image/CMakeLists.txt b/image/CMakeLists.txt index ed6a042..29c62e4 100644 --- a/image/CMakeLists.txt +++ b/image/CMakeLists.txt @@ -10,8 +10,6 @@ add_executable(hscript-image ${IMG_SRCS}) if("cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES) find_package(Boost REQUIRED COMPONENTS program_options) set_property(TARGET hscript-image PROPERTY CXX_STANDARD 17) -else() - find_package(Boost REQUIRED COMPONENTS filesystem program_options) endif() include_directories(${Boost_INCLUDE_DIR}) -- cgit v1.2.3-70-g09d2