Skip to content

Commit

Permalink
get rid of serial lto warning on 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhhughes committed Mar 5, 2025
1 parent 3ad1031 commit 481fa52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
endif()

if(NOT CMAKE_INTERPROCEDURAL_OPTIMIZATION)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON CACHE STRING "Turn on -flto" FORCE)
endif()

option(BUILD_SHARED_LIBS "Build shared libs" ON)
option(SPARK_DSG_BUILD_EXAMPLES "Build examples" ON)
option(SPARK_DSG_BUILD_PYTHON "Build python bindings" ON)
Expand Down

0 comments on commit 481fa52

Please # to comment.