Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
acdc560b
There was an error fetching the commit references. Please try again later.
Commit
acdc560b
authored
7 years ago
by
fireice-uk
Browse files
Options
Downloads
Patches
Plain Diff
Amend cmake to skip GCC options for MSVC
parent
d189f144
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+5
-3
5 additions, 3 deletions
CMakeLists.txt
with
5 additions
and
3 deletions
CMakeLists.txt
+
5
−
3
View file @
acdc560b
...
...
@@ -74,7 +74,7 @@ if(MICROHTTPD_ENABLE)
message
(
FATAL_ERROR
"microhttpd NOT found: use `-DMICROHTTPD_ENABLE=OFF` to build without http deamon support"
)
else
()
set
(
LIBS
${
LIBS
}
${
MHTD
}
)
include_directories
(
AFTER
${
MTHD_INCLUDE_DIR
}
)
include_directories
(
AFTER
${
MTHD_INCLUDE_DIR
}
)
endif
()
else
()
add_definitions
(
"-DCONF_NO_HTTPD"
)
...
...
@@ -147,8 +147,10 @@ endif()
################################################################################
# activate sse2 and aes-ni
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-msse2 -maes"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse2 -maes"
)
if
(
NOT CMAKE_CXX_COMPILER_ID MATCHES
"MSVC"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-msse2 -maes"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse2 -maes"
)
endif
()
# activate static libgcc and libstdc++ linking
if
(
CMAKE_LINK_STATIC
)
...
...
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