Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Alchemy Viewer
Commits
13a5cb22
Commit
13a5cb22
authored
5 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Add options for msvc to generate code favoring amd64 or intel64
parent
a95146aa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/cmake/00-Common.cmake
+10
-0
10 additions, 0 deletions
indra/cmake/00-Common.cmake
with
10 additions
and
0 deletions
indra/cmake/00-Common.cmake
+
10
−
0
View file @
13a5cb22
...
@@ -157,6 +157,16 @@ if (WINDOWS)
...
@@ -157,6 +157,16 @@ if (WINDOWS)
add_compile_options
(
/arch:SSE2
)
add_compile_options
(
/arch:SSE2
)
endif
()
endif
()
option
(
FAVOR_AMD
"Favor amd64 processors in generated code"
OFF
)
option
(
FAVOR_INTEL
"Favor intel64 processors in generated code"
OFF
)
if
(
FAVOR_AMD AND FAVOR_INTEL
)
message
(
FATAL_ERROR
"Cannot enable favor intel and amd at the same time"
)
elseif
(
FAVOR_AMD
)
add_compile_options
(
/favor:AMD64
)
elseif
(
FAVOR_INTEL
)
add_compile_options
(
/favor:INTEL64
)
endif
()
if
(
NOT VS_DISABLE_FATAL_WARNINGS
)
if
(
NOT VS_DISABLE_FATAL_WARNINGS
)
add_compile_options
(
/WX
)
add_compile_options
(
/WX
)
endif
(
NOT VS_DISABLE_FATAL_WARNINGS
)
endif
(
NOT VS_DISABLE_FATAL_WARNINGS
)
...
...
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