Skip to content

Commit

Permalink
Avoid LTO warning on type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
alazzaro committed Jul 11, 2023
1 parent 79e1c14 commit 2cf93ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.22)

set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE FORCE)

# include our cmake snippets
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Expand Down Expand Up @@ -353,3 +355,6 @@ endif ()
add_subdirectory(docs)

include(CustomTargets)

# Disable LTO
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE FORCE)

0 comments on commit 2cf93ca

Please sign in to comment.