File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.15 )
1
+ cmake_minimum_required (VERSION 3.21 )
2
2
3
3
# Set the project name to your project name
4
4
project (main C CXX)
@@ -10,4 +10,6 @@ add_executable(main
10
10
)
11
11
target_include_directories (main PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
12
12
13
- file (COPY ${CMAKE_CURRENT_BINARY_DIR} /compile_commands.json DESTINATION "${CMAKE_CURRENT_SOURCE_DIR} " )
13
+ if (EXISTS ${CMAKE_CURRENT_BINARY_DIR} /compile_commands.json)
14
+ file (COPY ${CMAKE_CURRENT_BINARY_DIR} /compile_commands.json DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} )
15
+ endif ()
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ def generate_compilation_database():
10
10
# Generate compilation database
11
11
subprocess .run (['mkdir' , '-p' , 'build' ])
12
12
subprocess .run (['cmake' , '-Bbuild' , 'testing/' ])
13
+ subprocess .run (['cmake' , '-Bbuild' , 'testing/' ])
13
14
14
15
15
16
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments