Skip to content

Commit

Permalink
add compiler warnings and warnings as error
Browse files Browse the repository at this point in the history
  • Loading branch information
qno committed Apr 26, 2019
1 parent 8e99f46 commit b0444a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ def _createCMakeLists(self):
target_compile_definitions(${{LIBOSDIALOG}} PRIVATE GTK2_DEFINITIONS)
target_link_libraries(${{LIBOSDIALOG}} PRIVATE ${{GTK2_LIBRARIES}})
endif ()
if (MSVC)
target_compile_options(${{LIBOSDIALOG}} PRIVATE /Wall /WX)
else ()
target_compile_options(${{LIBOSDIALOG}} PRIVATE -Wall -Wextra -pedantic -Werror)
endif ()
'''.format(self._libname)

self.output.info("create CMakeLists.txt file")
Expand Down

0 comments on commit b0444a0

Please sign in to comment.