File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ jobs:
31
31
32
32
# Step 3: Configure CMake
33
33
- name : Configure CMake
34
- run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest cmake -S /cpp_tutorials -G "Ninja Multi-Config" -B /cpp_tutorials/build
34
+ run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest cmake --preset ninja-multi
35
35
36
36
# Step 4: Build with CMake
37
37
- name : Build with CMake
38
- run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest cmake --build /cpp_tutorials/build --config Release
38
+ run : docker run --rm -v ${{ github.workspace }}:/cpp_tutorials mycpp_image:latest cmake --build --preset ninja-multi-release
39
39
40
40
# Step 5: Verify if build files are generated
41
41
- name : List build directory contents
Original file line number Diff line number Diff line change @@ -338,19 +338,11 @@ add_executable(error_code src/error_code.cpp)
338
338
339
339
340
340
341
- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
341
+ # Only build these on non-Windows platforms (Unix/Linux)
342
+ if (NOT WIN32 )
342
343
add_library (add SHARED src/add.cpp )
343
344
add_executable (loadeding_libraries src/loadeding_libraries.cpp )
344
345
target_link_libraries (loadeding_libraries dl )
345
-
346
- add_executable (align src/align.cpp )
347
-
348
- add_executable (signals src/signals.cpp )
349
- add_executable (system_call src/system_call.cpp )
350
-
351
- # add_executable(date_time src/date_time.cpp)
352
- add_executable (fork src/fork.cpp )
353
-
354
346
endif ()
355
347
356
348
You can’t perform that action at this time.
0 commit comments