Skip to content

Commit 3cba5e6

Browse files
committed
Rename BUILD_SHARED_LIBS project-wide precompiler definition to IFC_SHARED_BUILD
1 parent 6d6e7c2 commit 3cba5e6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ MESSAGE(STATUS "LIBDIR: ${LIBDIR}")
6363
set(IFCOPENSHELL_LIBARY_DIR "") # for *nix rpaths
6464

6565
if (BUILD_SHARED_LIBS)
66-
add_definitions(-DBUILD_SHARED_LIBS)
66+
add_definitions(-DIFC_SHARED_BUILD)
6767
if (MSVC)
6868
message(WARNING "Building DLLs against the static VC run-time. This is not recommended if the DLLs are to be redistributed.")
6969
# C4521: 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'

src/ifcgeom/ifc_geom_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef IFC_GEOM_API_H
2121
#define IFC_GEOM_API_H
2222

23-
#ifdef BUILD_SHARED_LIBS
23+
#ifdef IFC_SHARED_BUILD
2424
#ifdef _WIN32
2525
#ifdef IFC_GEOM_EXPORTS
2626
#define IFC_GEOM_API __declspec(dllexport)

src/ifcparse/ifc_parse_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef IFC_PARSE_API_H
2121
#define IFC_PARSE_API_H
2222

23-
#ifdef BUILD_SHARED_LIBS
23+
#ifdef IFC_SHARED_BUILD
2424
#ifdef _WIN32
2525
#ifdef IFC_PARSE_EXPORTS
2626
#define IFC_PARSE_API __declspec(dllexport)

0 commit comments

Comments
 (0)