From 5c5e077a66129f953b83e0ec2802117b11ac9195 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Fri, 20 Jun 2014 13:06:39 +0200 Subject: [PATCH] Added COOLPROP_LIB and CONVENTION=__cdecl to static library. Will only impact c-style exports, so should be safe. Signed-off-by: Ian Bell --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73158620..5ceff6ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,6 +105,7 @@ add_custom_target(generate_headers if (COOLPROP_STATIC_LIBRARY) add_library(${app_name} STATIC ${APP_SOURCES}) add_dependencies (${app_name} generate_headers) + set_target_properties (${app_name} PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -DCOOLPROP_LIB -DCONVENTION=__cdecl") endif() ##### COOLPROP SHARED LIBRARY ######