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:
3131
3232 # Step 3: Configure CMake
3333 - 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
3535
3636 # Step 4: Build with CMake
3737 - 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
3939
4040 # Step 5: Verify if build files are generated
4141 - 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)
338338
339339
340340
341- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
341+ # Only build these on non-Windows platforms (Unix/Linux)
342+ if (NOT WIN32 )
342343 add_library (add SHARED src/add.cpp)
343344 add_executable (loadeding_libraries src/loadeding_libraries.cpp)
344345 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-
354346endif ()
355347
356348
You can’t perform that action at this time.
0 commit comments