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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
MariaDB
Commits
784d4a47
Commit
784d4a47
authored
Feb 06, 2010
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
7257047d
7ffdc1d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
cmake/package_name.cmake
cmake/package_name.cmake
+6
-5
No files found.
cmake/package_name.cmake
View file @
784d4a47
...
...
@@ -72,14 +72,15 @@ IF(NOT VERSION)
ENDIF
()
ENDIF
()
ELSEIF
(
CMAKE_SYSTEM_NAME MATCHES
"Darwin"
)
IF
(
${
CMAKE_OSX_DEPLOYMENT_TARGET
}
)
SET
(
VER
"
${
CMAKE_OSX_DEPLOYMENT_TARGET
}
"
)
IF
(
CMAKE_OSX_DEPLOYMENT_TARGET
)
SET
(
DEFAULT_PLATFORM
"osx
${
CMAKE_OSX_DEPLOYMENT_TARGET
}
"
)
ELSE
()
SET
(
VER
"
${
CMAKE_SYSTEM_VERSION
}
"
)
STRING
(
REGEX REPLACE
"([0-9]+)
\\
.[0-9]+
\\
.[0-9]+"
"
\\
1"
VER
"
${
VER
}
"
)
# Subtract 4 from Darwin version to get correct osx10.X
MATH
(
EXPR VER
"
${
VER
}
-4"
)
SET
(
DEFAULT_PLATFORM
"osx10.
${
VER
}
"
)
ENDIF
()
STRING
(
REGEX REPLACE
"([0-9]+)
\\
.[0-9]+
\\
.[0-9]+"
"
\\
1"
VER
"
${
VER
}
"
)
MATH
(
EXPR VER
"
${
VER
}
-4"
)
SET
(
DEFAULT_PLATFORM
"osx10.
${
VER
}
"
)
LIST
(
LENGTH CMAKE_OSX_ARCHITECTURES LEN
)
IF
(
LEN GREATER 1
)
SET
(
DEFAULT_MACHINE
"universal"
)
...
...
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