diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index c37e483113..0d89016828 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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' diff --git a/src/ifcgeom/ifc_geom_api.h b/src/ifcgeom/ifc_geom_api.h index 6427aad798..af3171fcfe 100644 --- a/src/ifcgeom/ifc_geom_api.h +++ b/src/ifcgeom/ifc_geom_api.h @@ -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) diff --git a/src/ifcparse/ifc_parse_api.h b/src/ifcparse/ifc_parse_api.h index 38cef6d4e7..b2dec0ba1d 100644 --- a/src/ifcparse/ifc_parse_api.h +++ b/src/ifcparse/ifc_parse_api.h @@ -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)