Skip to content

Commit 948584a

Browse files
authored
Update some CMake files to add missing constructs & remove obsolete ones (#739)
1 parent 5d8e38e commit 948584a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ max_line_length = 80
3838
[{BUILD,*.BUILD,*.bzl,*.bazel,.bazelrc}]
3939
indent_size = 4
4040

41+
[{CMakeLists.txt,*.cmake}]
42+
indent_size = 4
43+
4144
[{*.cc,*.h}]
4245
indent_size = 2
4346

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
project(qsim)
2+
13
set(CMAKE_CXX_STANDARD 11)
24
cmake_minimum_required(VERSION 3.31)
35

pybind_interface/GetPybind11.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ if (pybind11_FOUND)
2424
endif()
2525

2626
if((NOT pybind11_FOUND) AND (NOT pybind11_POPULATED)) # check first on system path, then attempt git fetch
27-
FetchContent_Populate(pybind11)
28-
add_subdirectory(${pybind11_SOURCE_DIR} ${pybind11_BINARY_DIR})
27+
FetchContent_MakeAvailable(pybind11)
2928
endif()

0 commit comments

Comments
 (0)