diff --git a/CMakeLists.txt b/CMakeLists.txt index fd9971dcb..aa7621efc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,8 +59,6 @@ include(cmake/target_link_libraries_system.cmake) include(cmake/add_import_library.cmake) include(cmake/add_log_tag.cmake) include(cmake/libatomic.cmake) -include(cmake/check_for_std_optional.cmake) -include(cmake/check_for_std_filesystem.cmake) if (STATIC_LINK AND STATIC_LINK_RUNTIME) message(FATAL "Cannot set both STATIC_LINK and STATIC_LINK_RUNTIME") @@ -99,6 +97,8 @@ set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS OFF) include(cmake/unix.cmake) +include(cmake/check_for_std_optional.cmake) +include(cmake/check_for_std_filesystem.cmake) if(NOT WIN32) if(IOS OR ANDROID)