mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 12:54:25 +02:00
gcc compiler flags fixed
This commit is contained in:
@@ -82,6 +82,8 @@ class UnitsConan(ConanFile):
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.includedirs = ['include']
|
||||
if self.settings.compiler == "gcc":
|
||||
self.cpp_info.cxxflags = ["-fconcepts -Wno-literal-suffix"]
|
||||
|
||||
def package_id(self):
|
||||
self.info.settings.clear()
|
||||
|
@@ -60,11 +60,13 @@ target_include_directories(units
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
target_compile_options(units
|
||||
INTERFACE
|
||||
-Wno-literal-suffix
|
||||
-fconcepts
|
||||
)
|
||||
endif()
|
||||
add_library(mp::units ALIAS units)
|
||||
|
||||
# installation info
|
||||
|
Reference in New Issue
Block a user