diff --git a/src/posix/platform/CMakeLists.txt b/src/posix/platform/CMakeLists.txt index 88e8f7e735f..503a33e75bd 100644 --- a/src/posix/platform/CMakeLists.txt +++ b/src/posix/platform/CMakeLists.txt @@ -150,7 +150,7 @@ target_link_libraries(openthread-posix ) option(OT_TARGET_OPENWRT "enable openthread posix for OpenWRT" OFF) -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT OT_TARGET_OPENWRT) +if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") target_compile_definitions(ot-posix-config INTERFACE "OPENTHREAD_POSIX_CONFIG_NAT64_AIL_PREFIX_ENABLE=1" )