Skip to content

Commit f53122e

Browse files
committed
cmake: fix dlopen example
1 parent 41eaec5 commit f53122e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

doc/modules/ROOT/examples/shared_libs/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ add_compile_definitions(BOOST_OPENMETHOD_ENABLE_RUNTIME_CHECKS)
1212

1313
add_library(boost_openmethod-shared SHARED extensions.cpp)
1414
target_link_libraries(boost_openmethod-shared Boost::openmethod)
15-
set_target_properties(boost_openmethod-shared PROPERTIES ENABLE_EXPORTS ON)
15+
set_target_properties(boost_openmethod-shared PROPERTIES
16+
ENABLE_EXPORTS ON
17+
OUTPUT_NAME shared
18+
)
1619

1720
add_executable(boost_openmethod-static static_main.cpp)
1821
target_link_libraries(boost_openmethod-static Boost::openmethod Boost::dll boost_openmethod-shared)
@@ -36,7 +39,10 @@ add_library(boost_openmethod-indirect_shared SHARED indirect_extensions.cpp)
3639
target_compile_definitions(
3740
boost_openmethod-indirect_shared PUBLIC BOOST_OPENMETHOD_DEFAULT_REGISTRY=indirect_registry)
3841
target_link_libraries(boost_openmethod-indirect_shared PRIVATE Boost::openmethod Boost::dll)
39-
set_target_properties(boost_openmethod-indirect_shared PROPERTIES ENABLE_EXPORTS ON)
42+
set_target_properties(boost_openmethod-indirect_shared PROPERTIES
43+
ENABLE_EXPORTS ON
44+
OUTPUT_NAME indirect_shared
45+
)
4046

4147
add_executable(boost_openmethod-indirect indirect_main.cpp)
4248
target_compile_definitions(

0 commit comments

Comments
 (0)