Skip to content
Snippets Groups Projects
Commit ad40a7a8 authored by peters's avatar peters
Browse files

Check for LTO only for CXX.

parent 7a1ea7ed
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !34. Comments created here will be created in the context of that merge request.
......@@ -155,7 +155,7 @@ function(vf_add_library)
# link time optimization
if(NOT ${ARG_BUILDTYPE} MATCHES binary)
include(CheckIPOSupported)
check_ipo_supported(RESULT ipo_supported OUTPUT ipo_error)
check_ipo_supported(RESULT ipo_supported OUTPUT ipo_error LANGUAGES CXX)
if( ipo_supported )
status_lib("IPO / LTO enabled")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment