Skip to content

Commit

Permalink
check LTO for C
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Mar 19, 2024
1 parent c6e55d7 commit 6e383f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ endif()

# https://stackoverflow.com/a/47370726
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT IPO_ERROR)
check_ipo_supported(RESULT IPO_SUPPORTED OUTPUT IPO_ERROR LANGUAGES C)
if(IPO_SUPPORTED)
message(STATUS "IPO / LTO enabled")
set(INTERPROCEDURAL_OPTIMIZATION TRUE)
Expand Down

0 comments on commit 6e383f7

Please sign in to comment.