Skip to content
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

Bug fix in Modules/FindPIO.cmake: double periods in shared library names #62

Merged
merged 1 commit into from
Jul 25, 2022
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
4 changes: 2 additions & 2 deletions Modules/FindPIO.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ if(PIO_INCLUDE_DIR)
find_path(PIO_MODULE_DIR NAMES pio.mod PATHS "${PIO_PREFIX}"
PATH_SUFFIXES include include/pio lib/pio/module module module/pio NO_DEFAULT_PATH)
if(APPLE)
set(_SHARED_LIB_EXT .dylib)
set(_SHARED_LIB_EXT dylib)
else()
set(_SHARED_LIB_EXT .so)
set(_SHARED_LIB_EXT so)
endif()
find_library(PIO_C_STATIC_LIB libpioc.a PATHS "${PIO_PREFIX}" PATH_SUFFIXES lib lib64 NO_DEFAULT_PATH)
find_library(PIO_C_SHARED_LIB libpioc.${_SHARED_LIB_EXT} PATHS "${PIO_PREFIX}" PATH_SUFFIXES lib lib64 NO_DEFAULT_PATH)
Expand Down