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
454e94ea
Commit
454e94ea
authored
Apr 07, 2008
by
iggy@amd64.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around for older version of cmake.
parent
2c024c86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CMakeLists.txt
CMakeLists.txt
+4
-4
No files found.
CMakeLists.txt
View file @
454e94ea
...
...
@@ -83,17 +83,17 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800 /wd4805")
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
/wd4800 /wd4805"
)
# Disable warnings in Visual Studio 8 and above
IF
(
MSVC AND
MSVC_VERSION GREATER 1399
)
IF
(
MSVC AND
NOT CMAKE_GENERATOR MATCHES
"Visual Studio 7"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
/wd4996"
)
SET
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
/wd4996"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
/wd4996"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
/wd4996"
)
SET
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
/wd4996"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
/wd4996"
)
ENDIF
(
MSVC AND
MSVC_VERSION GREATER 1399
)
ENDIF
(
MSVC AND
NOT CMAKE_GENERATOR MATCHES
"Visual Studio 7"
)
# Settings for Visual Studio 7 and above.
IF
(
MSVC
AND MSVC_VERSION GREATER 1299
)
IF
(
MSVC
)
# replace /MDd with /MTd
STRING
(
REPLACE
"/MD"
"/MT"
CMAKE_C_FLAGS_RELEASE
${
CMAKE_C_FLAGS_RELEASE
}
)
STRING
(
REPLACE
"/MD"
"/MT"
CMAKE_C_FLAGS_RELWITHDEBINFO
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
)
...
...
@@ -123,7 +123,7 @@ IF(MSVC AND MSVC_VERSION GREATER 1299)
IF
(
NOT tmp_manifest
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
/MANIFEST:NO"
)
ENDIF
(
NOT tmp_manifest
)
ENDIF
(
MSVC
AND MSVC_VERSION GREATER 1299
)
ENDIF
(
MSVC
)
ADD_DEFINITIONS
(
"-D_WINDOWS -D__WIN__ -D_CRT_SECURE_NO_DEPRECATE"
)
...
...
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