Skip to content

Commit 08925e8

Browse files
committed
Fix form_module build: add form library dependency and enable PIC. Resolves undefined symbol and relocation errors by linking form library and compiling all FORM libraries with -fPIC flag.
1 parent 2b24836 commit 08925e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

form/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# ##############################################################################
99
# Copyright (C) 2025 ...
1010

11+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
12+
1113
include_directories(${PROJECT_SOURCE_DIR}/form)
1214

1315
# ROOT Storage toggle
@@ -28,6 +30,6 @@ endif()
2830

2931
add_library(form_module MODULE form_module.cpp)
3032

31-
target_link_libraries(form_module PRIVATE phlex::module)
33+
target_link_libraries(form_module PRIVATE phlex::module form)
3234

3335
target_include_directories(form_module PRIVATE ${PROJECT_SOURCE_DIR})

0 commit comments

Comments
 (0)