mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 09:30:52 +02:00
CMakeLists.txt: uses regex to remove potential rcX in LIBFTDI_VERSION_MINOR
This commit is contained in:
@@ -200,6 +200,7 @@ if (USE_PKGCONFIG)
|
||||
string(REPLACE "." ";" VERSION_LIST ${LIBFTDI_VERSION})
|
||||
list(GET VERSION_LIST 0 LIBFTDI_VERSION_MAJOR)
|
||||
list(GET VERSION_LIST 1 LIBFTDI_VERSION_MINOR)
|
||||
string(REGEX REPLACE "[^0-9].*" "" LIBFTDI_VERSION_MINOR "${LIBFTDI_VERSION_MINOR}")
|
||||
endif()
|
||||
else()
|
||||
set(LIBFTDI_LIBRARY_DIRS "")
|
||||
|
||||
Reference in New Issue
Block a user