From f8fcc4c0ae63708b8b7433d2d1d53d2f96967ced Mon Sep 17 00:00:00 2001 From: Li Linfeng Date: Tue, 29 Oct 2019 21:12:13 +0800 Subject: [PATCH] place config.h generation after mac version check --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c51a0e59..1c49068a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,7 +291,6 @@ include_directories("${CMAKE_SOURCE_DIR}/src" ${CMAKE_BINARY_DIR}) # to the source code check_include_files(byteswap.h HAVE_BYTESWAP_H) check_include_file_cxx(experimental/filesystem HAVE_EXPERIMENTAL_FILESYSTEM) -configure_file("config.h.in" "config.h") if(APPLE) string(REGEX MATCH "[0-9]+" DARWIN_MAJOR_VERSION ${CMAKE_SYSTEM_VERSION}) @@ -302,6 +301,8 @@ if(APPLE) endif() endif() +configure_file("config.h.in" "config.h") + if (HAVE_EXPERIMENTAL_FILESYSTEM) if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") find_library(CLANG_FS_LIBRARY "c++fs")