Skip to content

Commit

Permalink
Adds permissive- flog to all target in order to make the Visual Studi…
Browse files Browse the repository at this point in the history
…o build compile further
  • Loading branch information
Xav83 committed Feb 4, 2022
1 parent 50e632d commit 0784ae7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Day 1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ project(AdventOfCode_Day_1)

add_executable(day1_example src/example.cpp)
set_property(TARGET day1_example PROPERTY CXX_STANDARD 17)
target_compile_options(day1_example PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day1_part1 src/part1.cpp)
set_property(TARGET day1_part1 PROPERTY CXX_STANDARD 17)
target_compile_options(day1_part1 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day1_part2 src/part2.cpp)
set_property(TARGET day1_part2 PROPERTY CXX_STANDARD 17)
target_compile_options(day1_part2 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)
3 changes: 3 additions & 0 deletions Day 2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ project(AdventOfCode_Day_2)

add_executable(day2_example src/example.cpp)
set_property(TARGET day2_example PROPERTY CXX_STANDARD 17)
target_compile_options(day2_example PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day2_part1 src/part1.cpp)
set_property(TARGET day2_part1 PROPERTY CXX_STANDARD 17)
target_compile_options(day2_part1 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day2_part2 src/part2.cpp)
set_property(TARGET day2_part2 PROPERTY CXX_STANDARD 17)
target_compile_options(day2_part2 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)
3 changes: 3 additions & 0 deletions Day 3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ project(AdventOfCode_Day_3)

add_executable(day3_example src/example.cpp)
set_property(TARGET day3_example PROPERTY CXX_STANDARD 17)
target_compile_options(day3_example PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day3_part1 src/part1.cpp)
set_property(TARGET day3_part1 PROPERTY CXX_STANDARD 17)
target_compile_options(day3_part1 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day3_part2 src/part2.cpp)
set_property(TARGET day3_part2 PROPERTY CXX_STANDARD 17)
target_compile_options(day3_part2 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)
3 changes: 3 additions & 0 deletions Day 4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ project(AdventOfCode_Day_4)

add_executable(day4_example src/example.cpp)
set_property(TARGET day4_example PROPERTY CXX_STANDARD 17)
target_compile_options(day4_example PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day4_part1 src/part1.cpp)
set_property(TARGET day4_part1 PROPERTY CXX_STANDARD 17)
target_compile_options(day4_part1 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day4_part2 src/part2.cpp)
set_property(TARGET day4_part2 PROPERTY CXX_STANDARD 17)
target_compile_options(day4_part2 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)
3 changes: 3 additions & 0 deletions Day 5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ project(AdventOfCode_Day_5)

add_executable(day5_example src/example.cpp)
set_property(TARGET day5_example PROPERTY CXX_STANDARD 17)
target_compile_options(day5_example PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day5_part1 src/part1.cpp)
set_property(TARGET day5_part1 PROPERTY CXX_STANDARD 17)
target_compile_options(day5_part1 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

add_executable(day5_part2 src/part2.cpp)
set_property(TARGET day5_part2 PROPERTY CXX_STANDARD 17)
target_compile_options(day5_part2 PUBLIC $<$<CXX_COMPILER_ID:MSVC>: /permissive->)

0 comments on commit 0784ae7

Please sign in to comment.