File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,17 @@ if (NOT EXISTS "${CMAKE_SOURCE_DIR}/src/whereami/.git" )
1313 message (FATAL_ERROR "The src/whereami git submodule is not initialised.\n Please run `git submodule update --init`" )
1414endif ()
1515
16+ # add warnings
17+ if (MSVC )
18+ add_compile_options (/W4)
19+ # not yet: make warnings fatal
20+ #add_compile_options(/W4 /WX)
21+ else ()
22+ add_compile_options (-Wall -Wextra -pedantic)
23+ # not yet: make warnings fatal
24+ #add_compile_options(-Wall -Wextra -pedantic -Werror)
25+ endif ()
26+
1627# create version string based on git metadata (based on https://github.com/nocnokneo/cmake-git-versioning-example)
1728# in case version.hpp does not exist (it is shipped in GDL tarballs but not stored in the repo)
1829if (NOT EXISTS "${CMAKE_SOURCE_DIR} /src/version.hpp" )
You can’t perform that action at this time.
0 commit comments