fix cmake error: STRING sub-command REGEX, mode REPLACE needs at least 6 arguments total to

command


Former-commit-id: 773f938125ed03582fc8242af0a23076677bf848
This commit is contained in:
Zhiru Zhu 2019-10-31 14:57:09 +08:00
parent b60677b474
commit 530b2a0f28

View File

@ -114,7 +114,7 @@ if (UNIX)
OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
STRING(REGEX REPLACE "\\." "_" UBUNTU_VERSION ${LSB_RELEASE_ID_SHORT})
STRING(REGEX REPLACE "\\." "_" UBUNTU_VERSION "${LSB_RELEASE_ID_SHORT}")
endif (UBUNTU_FOUND)
endif (UBUNTU_EXTRA)
endif (DEBIAN_FOUND)