Rename BUILD_SHARED_LIBS project-wide precompiler definition to IFC_SHARED_BUILD

This commit is contained in:
Stinkfist0
2016-07-20 22:59:19 +03:00
parent 6d6e7c2982
commit 3cba5e6e94
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ MESSAGE(STATUS "LIBDIR: ${LIBDIR}")
set(IFCOPENSHELL_LIBARY_DIR "") # for *nix rpaths
if (BUILD_SHARED_LIBS)
add_definitions(-DBUILD_SHARED_LIBS)
add_definitions(-DIFC_SHARED_BUILD)
if (MSVC)
message(WARNING "Building DLLs against the static VC run-time. This is not recommended if the DLLs are to be redistributed.")
# C4521: 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef IFC_GEOM_API_H
#define IFC_GEOM_API_H
#ifdef BUILD_SHARED_LIBS
#ifdef IFC_SHARED_BUILD
#ifdef _WIN32
#ifdef IFC_GEOM_EXPORTS
#define IFC_GEOM_API __declspec(dllexport)
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef IFC_PARSE_API_H
#define IFC_PARSE_API_H
#ifdef BUILD_SHARED_LIBS
#ifdef IFC_SHARED_BUILD
#ifdef _WIN32
#ifdef IFC_PARSE_EXPORTS
#define IFC_PARSE_API __declspec(dllexport)