Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
80536ba7
Commit
80536ba7
authored
Feb 11, 2010
by
vvaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CMake 2.6 errors
parent
ab6f7873
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
packaging/WiX/CMakeLists.txt
packaging/WiX/CMakeLists.txt
+12
-4
packaging/WiX/create_msi.cmake.in
packaging/WiX/create_msi.cmake.in
+5
-3
No files found.
packaging/WiX/CMakeLists.txt
View file @
80536ba7
IF
(
NOT WIN32
)
RETURN
()
ENDIF
()
FIND_PATH
(
WIX_DIR heat.exe
FIND_PATH
(
WIX_DIR heat.exe
$ENV{WIX_DIR}/bin
$ENV{WIX_DIR}/bin
$ENV{ProgramFiles}/wix/bin
$ENV{ProgramFiles}/wix/bin
"$ENV{ProgramFiles}/Windows Installer XML v3
.0
/bin"
"$ENV{ProgramFiles}/Windows Installer XML v3/bin"
"$ENV{ProgramFiles}/Windows Installer XML v3.5/bin"
"$ENV{ProgramFiles}/Windows Installer XML v3.5/bin"
)
)
IF
(
NOT WIX_DIR
)
IF
(
NOT WIX_DIR
)
MESSAGE
(
FATAL_ERROR
"Cannot find wix"
)
IF
(
NOT _WIX_DIR_CHECKED
)
SET
(
_WIX_DIR_CHECKED 1 CACHE INTERNAL
""
)
MESSAGE
(
STATUS
"Cannot find wix 3, installer project will not be generated"
)
ENDIF
()
RETURN
()
ENDIF
()
ENDIF
()
FIND_PROGRAM
(
HEAT_EXECUTABLE heat
${
WIX_DIR
}
)
FIND_PROGRAM
(
HEAT_EXECUTABLE heat
${
WIX_DIR
}
)
FIND_PROGRAM
(
CANDLE_EXECUTABLE candle
${
WIX_DIR
}
)
FIND_PROGRAM
(
CANDLE_EXECUTABLE candle
${
WIX_DIR
}
)
FIND_PROGRAM
(
LIGHT_EXECUTABLE light
${
WIX_DIR
}
)
FIND_PROGRAM
(
LIGHT_EXECUTABLE light
${
WIX_DIR
}
)
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/create_msi.cmake.in
CONFIGURE_FILE
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/create_msi.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/create_msi.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/create_msi.cmake
...
@@ -21,7 +29,7 @@ IF(CMAKE_GENERATOR MATCHES "Visual Studio")
...
@@ -21,7 +29,7 @@ IF(CMAKE_GENERATOR MATCHES "Visual Studio")
SET
(
CONFIG_PARAM
"-DCMAKE_INSTALL_CONFIG_NAME=
${
CMAKE_CFG_INTDIR
}
"
)
SET
(
CONFIG_PARAM
"-DCMAKE_INSTALL_CONFIG_NAME=
${
CMAKE_CFG_INTDIR
}
"
)
ENDIF
()
ENDIF
()
ADD_CUSTOM_TARGET
(
ADD_CUSTOM_TARGET
(
WIX_Installer
MSI
COMMAND set VS_UNICODE_OUTPUT=
COMMAND set VS_UNICODE_OUTPUT=
COMMAND
${
CMAKE_COMMAND
}
${
CONFIG_PARAM
}
-P
${
CMAKE_CURRENT_BINARY_DIR
}
/create_msi.cmake
COMMAND
${
CMAKE_COMMAND
}
${
CONFIG_PARAM
}
-P
${
CMAKE_CURRENT_BINARY_DIR
}
/create_msi.cmake
)
)
...
...
packaging/WiX/create_msi.cmake.in
View file @
80536ba7
...
@@ -24,9 +24,11 @@ FOREACH(comp ${CPACK_COMPONENTS_ALL})
...
@@ -24,9 +24,11 @@ FOREACH(comp ${CPACK_COMPONENTS_ALL})
EXECUTE_PROCESS(
EXECUTE_PROCESS(
COMMAND ${CMAKE_COMMAND} ${CONFIG_PARAM} -DCMAKE_INSTALL_COMPONENT=${comp}
COMMAND ${CMAKE_COMMAND} ${CONFIG_PARAM} -DCMAKE_INSTALL_COMPONENT=${comp}
-DCMAKE_INSTALL_PREFIX= -P ${CMAKE_BINARY_DIR}/cmake_install.cmake
-DCMAKE_INSTALL_PREFIX= -P ${CMAKE_BINARY_DIR}/cmake_install.cmake
OUTPUT_QUIET
)
)
ENDFOREACH()
ENDFOREACH()
SET(INC_VAR 0)
MACRO(MAKE_WIX_IDENTIFIER str varname)
MACRO(MAKE_WIX_IDENTIFIER str varname)
STRING(REPLACE "/" "." ${varname} "${str}")
STRING(REPLACE "/" "." ${varname} "${str}")
STRING(REGEX REPLACE "[^a-zA-Z_0-9.]" "_" ${varname} "${${varname}}")
STRING(REGEX REPLACE "[^a-zA-Z_0-9.]" "_" ${varname} "${${varname}}")
...
@@ -35,9 +37,9 @@ MACRO(MAKE_WIX_IDENTIFIER str varname)
...
@@ -35,9 +37,9 @@ MACRO(MAKE_WIX_IDENTIFIER str varname)
# We have to cut down the length to 70 chars, since we add 2 char prefix
# We have to cut down the length to 70 chars, since we add 2 char prefix
# pretty often
# pretty often
IF(len GREATER 70)
IF(len GREATER 70)
STRING(
RANDOM
r)
STRING(
SUBSTRING "${${varname}}" 0 67 shortst
r)
STRING(SUBSTRING "${${varname}}" 0 65 shortstr
)
MATH(EXPR INC_VAR ${INC_VAR}+1
)
SET(${varname} "${shortstr}${
r
}")
SET(${varname} "${shortstr}${
INC_VAR
}")
ENDIF()
ENDIF()
ENDMACRO()
ENDMACRO()
...
...
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