mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 11:24:27 +02:00
docs: Compilation warnings handling refactored
This commit is contained in:
@@ -26,8 +26,9 @@ project(mp-units
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
# set paths to Conan packages
|
||||
include(${CMAKE_BINARY_DIR}/conan_paths.cmake OPTIONAL)
|
||||
# set restrictive compilation warnings
|
||||
include(warnings)
|
||||
set_warnings()
|
||||
|
||||
# enable static analysis
|
||||
#enable_clang_tidy()
|
||||
@@ -36,10 +37,6 @@ include(${CMAKE_BINARY_DIR}/conan_paths.cmake OPTIONAL)
|
||||
# add project code
|
||||
add_subdirectory(src)
|
||||
|
||||
# set restrictive compilation warnings
|
||||
include(warnings)
|
||||
set_warnings(mp-units INTERFACE)
|
||||
|
||||
# add usage example
|
||||
add_subdirectory(example)
|
||||
|
||||
|
Reference in New Issue
Block a user