Skip to content
Snippets Groups Projects

Add new library, which contains the calculation of the macroscopic quantities and a general cumulant computation. (Closes #13)

Merged Sören Peters requested to merge soe.peters/VirtualFluids:feature/united_code into develop
Compare and Show latest version
1 file
+ 11
9
Compare changes
  • Side-by-side
  • Inline
@@ -153,15 +153,17 @@ function(vf_add_library)
PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
# link time optimization
if(NOT ${ARG_BUILDTYPE} MATCHES binary)
include(CheckIPOSupported)
check_ipo_supported(RESULT ipo_supported OUTPUT ipo_error LANGUAGES CXX)
if( ipo_supported )
status_lib("IPO / LTO enabled")
set_target_properties(${library_name} PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
else()
status_lib("IPO / LTO not supported: <${ipo_error}>")
if(BUILD_VF_LTO)
if(NOT ${ARG_BUILDTYPE} MATCHES binary)
include(CheckIPOSupported)
check_ipo_supported(RESULT ipo_supported OUTPUT ipo_error LANGUAGES CXX)
if( ipo_supported )
status_lib("IPO / LTO enabled")
set_target_properties(${library_name} PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
else()
status_lib("IPO / LTO not supported: <${ipo_error}>")
endif()
endif()
endif()
Loading