mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
Warning and other compilation flags cleanup
This commit is contained in:
@@ -93,11 +93,13 @@ class UnitsConan(ConanFile):
|
||||
self.cpp_info.includedirs = ['include']
|
||||
if self.settings.compiler == "gcc":
|
||||
self.cpp_info.cxxflags = [
|
||||
"-fconcepts",
|
||||
"-Wno-literal-suffix",
|
||||
"-Wno-non-template-friend",
|
||||
"-Wno-stringop-overflow"
|
||||
]
|
||||
if Version(self.settings.compiler.version) < "10":
|
||||
self.cpp_info.cxxflags.extend([
|
||||
"-fconcepts"
|
||||
])
|
||||
|
||||
def package_id(self):
|
||||
self.info.settings.clear()
|
||||
|
@@ -65,18 +65,16 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
INTERFACE
|
||||
-Wno-literal-suffix
|
||||
-Wno-non-template-friend
|
||||
-Wno-stringop-overflow
|
||||
)
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0)
|
||||
target_link_libraries(units
|
||||
INTERFACE
|
||||
CONAN_PKG::range-v3
|
||||
)
|
||||
|
||||
target_compile_options(units
|
||||
INTERFACE
|
||||
-fconcepts
|
||||
)
|
||||
target_link_libraries(units
|
||||
INTERFACE
|
||||
CONAN_PKG::range-v3
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
add_library(mp::units ALIAS units)
|
||||
|
Reference in New Issue
Block a user