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):
|
def package_info(self):
|
||||||
self.cpp_info.includedirs = ['include']
|
self.cpp_info.includedirs = ['include']
|
||||||
|
if self.settings.compiler == "gcc":
|
||||||
|
self.cpp_info.cxxflags = ["-fconcepts -Wno-literal-suffix"]
|
||||||
|
|
||||||
def package_id(self):
|
def package_id(self):
|
||||||
self.info.settings.clear()
|
self.info.settings.clear()
|
||||||
|
@@ -60,11 +60,13 @@ target_include_directories(units
|
|||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
)
|
)
|
||||||
target_compile_options(units
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
target_compile_options(units
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-Wno-literal-suffix
|
-Wno-literal-suffix
|
||||||
-fconcepts
|
-fconcepts
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
add_library(mp::units ALIAS units)
|
add_library(mp::units ALIAS units)
|
||||||
|
|
||||||
# installation info
|
# installation info
|
||||||
|
Reference in New Issue
Block a user