diff --git a/.editorconfig b/.editorconfig index b0898f1d5..7e25e15fc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -38,6 +38,9 @@ max_line_length = 80 [{BUILD,*.BUILD,*.bzl,*.bazel,.bazelrc}] indent_size = 4 +[{CMakeLists.txt,*.cmake}] +indent_size = 4 + [{*.cc,*.h}] indent_size = 2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 87057fca5..703e13081 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,5 @@ +project(qsim) + set(CMAKE_CXX_STANDARD 11) cmake_minimum_required(VERSION 3.31) diff --git a/pybind_interface/GetPybind11.cmake b/pybind_interface/GetPybind11.cmake index 3f1e01afc..a9b4f527d 100644 --- a/pybind_interface/GetPybind11.cmake +++ b/pybind_interface/GetPybind11.cmake @@ -24,6 +24,5 @@ if (pybind11_FOUND) endif() if((NOT pybind11_FOUND) AND (NOT pybind11_POPULATED)) # check first on system path, then attempt git fetch - FetchContent_Populate(pybind11) - add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR}) + FetchContent_MakeAvailable(pybind11) endif()