Skip to content

Commit 4925211

Browse files
committed
Fix free edition for demangler plugins (woops)
1 parent 8149774 commit 4925211

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

demangler/gnu3/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ file(GLOB SOURCES
77
*.c
88
*.h)
99

10-
add_library(${PROJECT_NAME} SHARED ${SOURCES})
10+
if(DEMO)
11+
add_library(${PROJECT_NAME} STATIC ${SOURCES})
12+
else()
13+
add_library(${PROJECT_NAME} SHARED ${SOURCES})
14+
endif()
1115

1216
if(NOT BN_INTERNAL_BUILD)
1317
# Out-of-tree build

demangler/msvc/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ file(GLOB SOURCES
77
*.c
88
*.h)
99

10-
add_library(${PROJECT_NAME} SHARED ${SOURCES})
10+
if(DEMO)
11+
add_library(${PROJECT_NAME} STATIC ${SOURCES})
12+
else()
13+
add_library(${PROJECT_NAME} SHARED ${SOURCES})
14+
endif()
1115

1216
if(NOT BN_INTERNAL_BUILD)
1317
# Out-of-tree build

0 commit comments

Comments
 (0)