Skip to content

Commit

Permalink
Fix CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
chavid authored and sponce committed Oct 1, 2024
1 parent da45563 commit 5cf64e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exercises/race/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ target_link_libraries( racing PRIVATE Threads::Threads )
# Create the "solution executable".
add_executable( racing.sol1 EXCLUDE_FROM_ALL "solution/racing.sol1.cpp" )
target_link_libraries( racing.sol1 PRIVATE Threads::Threads )
add_custom_target( solution1 )
add_dependencies( solution1 racing.sol1 )
add_executable( racing.sol2 EXCLUDE_FROM_ALL "solution/racing.sol2.cpp" )
target_link_libraries( racing.sol2 PRIVATE Threads::Threads )
add_custom_target( solution2 )
add_dependencies( solution2 racing.sol2 )
add_dependencies( solution solution1 solution2 )

0 comments on commit 5cf64e7

Please sign in to comment.