Notes |
|
(0037276)
|
Brad King
|
2014-11-25 09:37
|
|
The selection of the runtime library field comes from mapping the corresponding flags. The CMAKE_<LANG>_FLAGS_<CONFIG> cache entry initializers are chosen here:
http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/Platform/Windows-MSVC.cmake;hb=v3.0.2#l256 [^]
with -MD. That can be changed by the user in the cache to something else.
However, there is no mapping for the Intel-specific "QuickWin" value right now. The cmVisualStudioGeneratorOptions::ParseFinish method just translates between MSVC and Intel values.
What compiler flag does Intel use to specify this runtime library? |
|
|
(0037289)
|
Daniel Franke
|
2014-11-26 06:00
|
|
An excerpt of a complete configuration as generated by VS10:
-- 8< --
<Tool Name="VFFortranCompilerTool" AdditionalOptions=" /W1 -Wall
-Wextra -Wno-unused-parameter -Wno-conversion"
SuppressStartupBanner="true" Preprocess="preprocessYes"
AdditionalIncludeDirectories="[snip]" PreprocessorDefinitions="CMAKE_INTDIR=\"Debug\"" ModulePath="..\..\finclude\$(ConfigurationName)" AssemblerListingLocation="Debug/" RuntimeLibrary="rtQuickWin" ExceptionHandling="0"/>
-- 8< --
Quickwin applications require: "/libs:qwin /subsystem:windows"; these flags seem to be implied by the 'RuntimeLibrary="rtQuickWin"' selection.
Please note that other graphics libraries may require yet different runtime settings. For example Winteracter (http://www.winteracter.com/ [^]) would need RuntimeLibrary="rtStandardGraphics". |
|
|
(0037297)
|
Brad King
|
2014-11-26 10:47
|
|
Ah, now I remember that the Intel Fortran compiler has a few different flags that together select the RuntimeLibrary setting. The special logic for that is in both cmVisualStudioGeneratorOptions::StoreUnknownFlag and cmVisualStudioGeneratorOptions::ParseFinish. Please look at updating them to set and use a new FortranRuntimeQuickWin boolean member of the class. |
|
|
(0042673)
|
Kitware Robot
|
2016-06-10 14:29
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|