Skip to content

Commit

Permalink
Merge pull request ThrowTheSwitch#513 from carsonalh/msvcfix
Browse files Browse the repository at this point in the history
Fix for MSVC compilation errors
  • Loading branch information
mvandervoord authored Jul 18, 2020
2 parents 0126e48 + e640949 commit 09acb0b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ target_compile_options(${PROJECT_NAME}
-Wno-missing-braces
-Wold-style-cast
-Wshadow
-Wweak-vtables>
-Wweak-vtables
-Werror
-Wall>
$<$<C_COMPILER_ID:GNU>:-Waddress
-Waggregate-return
-Wformat-nonliteral
Expand All @@ -101,9 +103,10 @@ target_compile_options(${PROJECT_NAME}
-Wno-unused-parameter
-Wunreachable-code
-Wwrite-strings
-Wpointer-arith>
-Wall
-Werror
-Wpointer-arith
-Werror
-Wall>
$<$<C_COMPILER_ID:MSVC>:/Wall>
)

write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake
Expand Down

0 comments on commit 09acb0b

Please sign in to comment.