| ... | @@ -125,8 +125,8 @@ check_pie_supported( | ... | @@ -125,8 +125,8 @@ check_pie_supported( |
| 125 | OUTPUT_VARIABLE ZIG_PIE_SUPPORTED_BY_CMAKE | 125 | OUTPUT_VARIABLE ZIG_PIE_SUPPORTED_BY_CMAKE |
| 126 | LANGUAGES C CXX | 126 | LANGUAGES C CXX |
| 127 | ) | 127 | ) |
| 128 | if(ZIG_PIE AND NOT ZIG_PIE_SUPPORTED_BY_CMAKE) | 128 | if(ZIG_PIE AND NOT CMAKE_CXX_LINK_PIE_SUPPORTED) |
| 129 | message(SEND_ERROR "ZIG_PIE was requested but CMake does not support it for \"zigcpp\" target") | 129 | message(SEND_ERROR "ZIG_PIE was requested but CMake does not support it for \"zigcpp\" target: ${ZIG_PIE_SUPPORTED_BY_CMAKE}") |
| 130 | endif() | 130 | endif() |
| 131 | | 131 | |
| 132 | | 132 | |