diff --git a/CMake/VirtualFluidsMacros.cmake b/CMake/VirtualFluidsMacros.cmake index 4b56d85a22dcccbe0c69572582e8a46ffc8c2c8a..187c523e26a3ab47ad7ecdef03a3bb7c8c42747c 100644 --- a/CMake/VirtualFluidsMacros.cmake +++ b/CMake/VirtualFluidsMacros.cmake @@ -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")