mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 05:08:45 +08:00
Fix bug
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
function(test_strerror_r OUTPUT_VAR HAVE_GNU_SOURCE)
|
function(test_strerror_r OUTPUT_VAR HAVE_GNU_SOURCE)
|
||||||
if (DEFINED STRERROR_R_TEST_RESULT_CACHE)
|
if (DEFINED STRERROR_R_TEST_RESULT_CACHE)
|
||||||
set(${OUTPUT_VAR} ${STRERROR_R_TEST_RESULT_CACHE} PARENT_SCOPE)
|
if (STRERROR_R_TEST_RESULT_CACHE)
|
||||||
|
set(${OUTPUT_VAR} 1 PARENT_SCOPE)
|
||||||
|
else()
|
||||||
|
unset(${OUTPUT_VAR} PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
message(STATUS "Check strerror_r is GNU complatable - ${STRERROR_R_TEST_RESULT_CACHE} (Cached)")
|
message(STATUS "Check strerror_r is GNU complatable - ${STRERROR_R_TEST_RESULT_CACHE} (Cached)")
|
||||||
else()
|
else()
|
||||||
message(STATUS "Check strerror_r is GNU complatable")
|
message(STATUS "Check strerror_r is GNU complatable")
|
||||||
|
|||||||
Reference in New Issue
Block a user