8000 CMake: print target and warn if it is not a supported one by FreyJo · Pull Request #184 · giaf/hpipm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CMake: print target and warn if it is not a supported one #184

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

Merged
merged 2 commits into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ set(ALLOWED_TARGETS
GENERIC
)
set_property(CACHE TARGET PROPERTY STRINGS ${ALLOWED_TARGETS})
message(STATUS "HPIPM Target is ${TARGET}")

# Use C99 extension to math library
set(USE_C99_MATH ON CACHE STRING "Use C99 extension to math library")
Expand Down Expand Up @@ -165,6 +166,8 @@ if(${TARGET} MATCHES AVX)
endif()
elseif(${TARGET} MATCHES GENERIC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DTARGET_GENERIC")
else()
message(WARNING "Unknown target ${TARGET}. GENERIC code will be used instead.")
endif()

#
Expand Down
0