summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--image/CMakeLists.txt2
2 files changed, 1 insertions, 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})