Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
96598c5c
Commit
96598c5c
authored
Nov 11, 2016
by
James E. King, III
Committed by
Jesse Beder
Nov 10, 2016
Browse files
Fix compiler flags for MSVC_STATIC_RT=OFF builds
Fix compiler flags for MSVC_STATIC_RT=OFF builds
parent
b5b03bb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
CMakeLists.txt
CMakeLists.txt
+2
-1
No files found.
CMakeLists.txt
View file @
96598c5c
...
@@ -222,13 +222,14 @@ if(MSVC)
...
@@ -222,13 +222,14 @@ if(MSVC)
endif
()
endif
()
# correct linker options
# correct linker options
foreach
(
flag_var
yaml_c_flags yaml_cxx_flags
)
foreach
(
flag_var
CMAKE_C_FLAGS CMAKE_CXX_FLAGS
)
foreach
(
config_name
""
DEBUG RELEASE MINSIZEREL RELWITHDEBINFO
)
foreach
(
config_name
""
DEBUG RELEASE MINSIZEREL RELWITHDEBINFO
)
set
(
var_name
"
${
flag_var
}
"
)
set
(
var_name
"
${
flag_var
}
"
)
if
(
NOT
"
${
config_name
}
"
STREQUAL
""
)
if
(
NOT
"
${
config_name
}
"
STREQUAL
""
)
set
(
var_name
"
${
var_name
}
_
${
config_name
}
"
)
set
(
var_name
"
${
var_name
}
_
${
config_name
}
"
)
endif
()
endif
()
string
(
REPLACE
"/MD"
"
${
LIB_RT_OPTION
}
"
${
var_name
}
"
${${
var_name
}}
"
)
string
(
REPLACE
"/MD"
"
${
LIB_RT_OPTION
}
"
${
var_name
}
"
${${
var_name
}}
"
)
set
(
${
var_name
}
"
${${
var_name
}}
"
CACHE STRING
""
FORCE
)
endforeach
()
endforeach
()
endforeach
()
endforeach
()
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
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