Skip to content

Commit

Permalink
aeron: avoid overwriting of CMAKE_CXX_FLAGS in toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Oct 22, 2023
1 parent c617296 commit d08c042
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions recipes/aeron/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ def generate(self):
tc.cache_variables["AERON_BUILD_DOCUMENTATION"] = False
tc.cache_variables["AERON_INSTALL_TARGETS"] = True
tc.cache_variables["AERON_ENABLE_NONSTANDARD_OPTIMIZATIONS"] = True
# The finite-math-only optimization has no effect and will cause linking errors
# The finite-math-only optimization has no effect and can cause linking errors
# when linked against glibc >= 2.31
tc.variables["CMAKE_C_FLAGS"] = "-fno-finite-math-only"
tc.variables["CMAKE_CXX_FLAGS"] = "-fno-finite-math-only"
tc.blocks["cmake_flags_init"].template += (
'string(APPEND CMAKE_CXX_FLAGS_INIT " -fno-finite-math-only")\n'
'string(APPEND CMAKE_C_FLAGS_INIT " -fno-finite-math-only")\n'
)
tc.generate()

def _patch_sources(self):
Expand Down

0 comments on commit d08c042

Please sign in to comment.