Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
853a7868
Commit
853a7868
authored
13 years ago
by
Perttu Ahola
Browse files
Options
Downloads
Patches
Plain Diff
In CMake scripts: New version number, fix MSVC stuff
parent
9e46cbf7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+4
-2
4 additions, 2 deletions
CMakeLists.txt
src/CMakeLists.txt
+5
-1
5 additions, 1 deletion
src/CMakeLists.txt
with
9 additions
and
3 deletions
CMakeLists.txt
+
4
−
2
View file @
853a7868
...
...
@@ -8,10 +8,12 @@ endif(${CMAKE_VERSION} STREQUAL "2.8.2")
project
(
minetest
)
set
(
VERSION_MAJOR 0
)
set
(
VERSION_MINOR
2
)
set
(
VERSION_PATCH
20110922_1
)
set
(
VERSION_MINOR
3
)
set
(
VERSION_PATCH
dev-20111012a
)
set
(
VERSION_STRING
"
${
VERSION_MAJOR
}
.
${
VERSION_MINOR
}
.
${
VERSION_PATCH
}
"
)
MESSAGE
(
STATUS
"*** Will build version
${
VERSION_STRING
}
***"
)
# Configuration options
if
(
WIN32
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
5
−
1
View file @
853a7868
...
...
@@ -217,13 +217,17 @@ if(MSVC)
# Visual Studio
# EHa enables SEH exceptions (used for catching segfaults)
set
(
CMAKE_CXX_FLAGS_RELEASE
"/EHa
/MD
/O2 /Ob2 /Oi /Ot /Oy /GL /FD /MT /GS- /arch:SSE /fp:fast /D NDEBUG /D _HAS_ITERATOR_DEBUGGING=0 /TP"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"/EHa /O2 /Ob2 /Oi /Ot /Oy /GL /FD /MT /GS- /arch:SSE /fp:fast /D NDEBUG /D _HAS_ITERATOR_DEBUGGING=0 /TP"
)
#set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /NODEFAULTLIB:\"libcmtd.lib\" /NODEFAULTLIB:\"libcmt.lib\"")
set
(
CMAKE_EXE_LINKER_FLAGS_RELEASE
"/LTCG"
)
# Debug build doesn't catch exceptions by itself
# Add some optimizations because otherwise it's VERY slow
set
(
CMAKE_CXX_FLAGS_DEBUG
"/MDd /Zi /Ob0 /Od /RTC1"
)
# Flags for C files (sqlite)
# /MT = Link statically with standard library stuff
set
(
CMAKE_C_FLAGS_RELEASE
"/O2 /Ob2 /MT"
)
if
(
BUILD_SERVER
)
set_target_properties
(
${
PROJECT_NAME
}
server PROPERTIES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment