Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
92fce8d5
Commit
92fce8d5
authored
May 20, 2008
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: make sure Cygwin-Unknown is not the name for the package
parent
afdc33db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
CMakeCPack.cmake
CMakeCPack.cmake
+8
-1
No files found.
CMakeCPack.cmake
View file @
92fce8d5
...
...
@@ -32,7 +32,13 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
"
${
CPACK_SOURCE_PACKAGE_FILE_NAME
}
-RC-
${
CMake_VERSION_RC
}
"
)
ENDIF
(
CMake_VERSION_RC
)
IF
(
NOT DEFINED CPACK_SYSTEM_NAME
)
SET
(
CPACK_SYSTEM_NAME
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_SYSTEM_PROCESSOR
}
)
# make sure package is not Cygwin-unknown, for Cygwin just
# cygwin is good for the system name
IF
(
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"CYGWIN"
)
SET
(
CPACK_SYSTEM_NAME Cygwin
)
ELSE
(
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"CYGWIN"
)
SET
(
CPACK_SYSTEM_NAME
${
CMAKE_SYSTEM_NAME
}
-
${
CMAKE_SYSTEM_PROCESSOR
}
)
ENDIF
(
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"CYGWIN"
)
ENDIF
(
NOT DEFINED CPACK_SYSTEM_NAME
)
IF
(
${
CPACK_SYSTEM_NAME
}
MATCHES Windows
)
IF
(
CMAKE_CL_64
)
...
...
@@ -52,6 +58,7 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
ENDIF
(
UNIX
)
# cygwin specific packaging stuff
IF
(
CYGWIN
)
# if we are on cygwin and have cpack, then force the
# doc, data and man dirs to conform to cygwin style directories
SET
(
CMAKE_DOC_DIR
"/share/doc/
${
CPACK_PACKAGE_FILE_NAME
}
"
)
...
...
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