Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
4c32adee
Commit
4c32adee
authored
Jul 19, 2013
by
Martin Schultz
Browse files
* added define to compile crt statically with msvc
parent
ca43376d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4c32adee
...
...
@@ -75,6 +75,19 @@ IF(ACGL_COMPILE_WITH_QT)
SET
(
LIBRARIES
${
LIBRARIES
}
${
QT_LIBRARIES
}
)
ENDIF
()
# static linking for MSVC
IF
(
ACGL_STATIC_RUNTIME_ENV
)
if
(
MSVC
)
foreach
(
flag
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
)
if
(
${
flag
}
MATCHES
"/MD"
)
string
(
REGEX REPLACE
"/MD"
"/MT"
${
flag
}
"
${${
flag
}}
"
)
endif
()
endforeach
()
endif
()
ENDIF
()
################################################################################
# Final Definition
################################################################################
...
...
Write
Preview
Supports
Markdown
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