Skip to content

Commit

Permalink
Re-added boost but without LTO
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenewald committed Jan 12, 2025
1 parent a06f3da commit 38c7271
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include(cmake/variables.cmake)

set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")

# add_compile_options(-fno-inline -fno-omit-frame-pointer)


Expand Down Expand Up @@ -60,9 +61,15 @@ target_include_directories(
target_compile_features(fractal-generator_lib PUBLIC cxx_std_23)

find_package(fmt REQUIRED)
find_package(Boost REQUIRED)
find_package(argparse REQUIRED)
find_package(SFML REQUIRED graphics CONFIG)
set_target_properties(boost::boost PROPERTIES
INTERFACE_COMPILE_OPTIONS "-fno-lto"
INTERFACE_LINK_OPTIONS "-fno-lto"
)
target_link_libraries(fractal-generator_lib PRIVATE fmt::fmt)
target_link_libraries(fractal-generator_lib PRIVATE boost::boost)
target_link_libraries(fractal-generator_lib PRIVATE argparse::argparse)
target_link_libraries(fractal-generator_lib PRIVATE sfml-graphics)

Expand All @@ -76,6 +83,7 @@ set_property(TARGET fractal-generator_exe PROPERTY OUTPUT_NAME fractal-generator
target_compile_features(fractal-generator_exe PRIVATE cxx_std_23)

target_link_libraries(fractal-generator_exe PRIVATE fmt::fmt)
target_link_libraries(fractal-generator_exe PRIVATE boost::boost)
target_link_libraries(fractal-generator_exe PRIVATE fractal-generator_lib)
target_link_libraries(fractal-generator_exe PRIVATE argparse::argparse)
target_link_libraries(fractal-generator_exe PRIVATE sfml-graphics)
Expand Down
4 changes: 4 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def requirements(self):
self.requires("fmt/11.0.2")
self.requires("sfml/2.6.1")
self.requires("argparse/3.1")
self.requires("boost/1.86.0")

def configure(self):
self.options["boost"].without_test=True

def build_requirements(self):
self.test_requires("catch2/3.7.0")
Expand Down

0 comments on commit 38c7271

Please sign in to comment.