Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
1c24bea8
Commit
1c24bea8
authored
Feb 05, 2008
by
Pierre d'Herbemont
Browse files
cmake: Fix libvlc linking with module.
parent
94e9e7c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
extras/buildsystem/cmake/include/vlc_module_funcs.cmake
View file @
1c24bea8
...
...
@@ -3,7 +3,7 @@ include( ${CMAKE_SOURCE_DIR}/cmake/vlc_add_compile_flag.cmake )
MACRO
(
vlc_add_module module_name
)
if
(
ENABLE_VLC_MODULE_
${
module_name
}
)
add_library
(
${
module_name
}
_plugin MODULE
${
ARGN
}
)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
"VLC_
${
module_name
}
_LINK_LIBRARIES
libvlc"
)
set
(
VLC_
${
module_name
}
_LINK_LIBRARIES
"
${
VLC_
${
module_name
}
_LINK_LIBRARIES
}
;
libvlc"
)
set_target_properties
(
${
module_name
}
_plugin PROPERTIES COMPILE_FLAGS
"-D__PLUGIN__ -DMODULE_NAME=
${
module_name
}
-DMODULE_NAME_IS_
${
module_name
}
-I
${
CMAKE_CURRENT_SOURCE_DIR
}
${
VLC_
${
module_name
}
_COMPILE_FLAG
}
"
)
if
(
VLC_
${
module_name
}
_LINK_LIBRARIES
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment