Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
649cc5b5
Commit
649cc5b5
authored
Feb 04, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Fix revision generation.
parent
d4985d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
+17
-10
No files found.
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
View file @
649cc5b5
...
...
@@ -170,21 +170,28 @@ target_link_libraries(libvlc-control libvlc)
target_link_libraries(libvlc ${HAVE_ICONV})
# Carbon
find_library(CARBON_FRAMEWORK Carbon)
target_link_libraries(libvlc ${CARBON_FRAMEWORK})
if(APPLE)
find_library(CARBON_FRAMEWORK Carbon)
target_link_libraries(libvlc ${CARBON_FRAMEWORK})
endif(APPLE)
##########################################################
#
ver
sion.c
#
revi
sion.c
set(rev "${CMAKE_CURRENT_SOURCE_DIR}/misc/revision.c")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/misc/revision.c
COMMAND sh "rm -f misc/revision.c misc/revision.c.tmp &&
echo '/* AUTOGENERATED FILE - DO NOT EDIT */' > misc/revision.c.tmp &&
REVISION=\"$$\(LANG=C svnversion \\\"$\(top_srcdir)\\\" 2>/dev/null || echo exported)\" ; &&
echo \"const char psz_vlc_changeset[] = \\\"$$REVISION\\\";\" >> misc/revision.c.tmp &&
mv -f misc/revision.c.tmp misc/revision.c"
OUTPUT ${rev}
COMMAND echo "${rev}"
COMMAND rm -f ${rev} ${rev}.tmp
COMMAND echo ${rev}
COMMAND echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > ${rev}.tmp
COMMAND printf "const char psz_vlc_changeset[] = \"" >> ${rev}.tmp
COMMAND sh -c "echo `LANG=C\ svnversion\ ${CMAKE_SOURCE_DIR}\ ||\ echo\ exported`"
COMMAND echo "\";" >> ${rev}.tmp
COMMAND mv -f ${rev}.tmp ${rev}
VERBATIM
)
set(rev)
##########################################################
# SET_TARGET_PROPERTIES
...
...
Write
Preview
Markdown
is supported
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