New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ampl-mp] Update version, separate port ampl-asl and fix arm build #14518
[ampl-mp] Update version, separate port ampl-asl and fix arm build #14518
Conversation
endif() | ||
|
||
install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn.hd | ||
+ ${GENERATED_INCLUDE_DIR}/stdio1.h ${GENERATED_INCLUDE_DIR}/arith.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already open a PR to upstream: ampl/asl#4
if(MSVC) | ||
target_compile_options(${name} PRIVATE | ||
- /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996 /MT$<$<CONFIG:Debug>:d>) | ||
+ /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use CRT linkage in C_FLAGS
/CXX_FLAGS
set by vcpkg:
vcpkg/scripts/toolchains/windows.cmake
Lines 8 to 14 in 8de4ee8
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic") | |
set(VCPKG_CRT_LINK_FLAG_PREFIX "/MD") | |
elseif(VCPKG_CRT_LINKAGE STREQUAL "static") | |
set(VCPKG_CRT_LINK_FLAG_PREFIX "/MT") | |
else() | |
message(FATAL_ERROR "Invalid setting for VCPKG_CRT_LINKAGE: \"${VCPKG_CRT_LINKAGE}\". It must be \"static\" or \"dynamic\"") | |
endif() |
ampl-asl
Related to #14245