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")