diff options
-rw-r--r-- | cmake/scripts/common/Platform.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/scripts/common/Platform.cmake b/cmake/scripts/common/Platform.cmake index b389745d40..397d8d46e8 100644 --- a/cmake/scripts/common/Platform.cmake +++ b/cmake/scripts/common/Platform.cmake @@ -35,11 +35,13 @@ endforeach() string(REPLACE ";" " " CORE_PLATFORM_STRING "${CORE_PLATFORM_NAME_LC}") list(APPEND final_message "Platforms: ${CORE_PLATFORM_STRING}") -list(LENGTH CORE_PLATFORM_NAME_LC PLATFORM_COUNT) -if(PLATFORM_COUNT EQUAL 1) - option(ENABLE_APP_AUTONAME "Enable renaming the binary according to windowing?" ON) - if(ENABLE_APP_AUTONAME) - set(APP_BINARY_SUFFIX "-${CORE_PLATFORM_NAME_LC}") +if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd) + list(LENGTH CORE_PLATFORM_NAME_LC PLATFORM_COUNT) + if(PLATFORM_COUNT EQUAL 1) + option(ENABLE_APP_AUTONAME "Enable renaming the binary according to windowing?" ON) + if(ENABLE_APP_AUTONAME) + set(APP_BINARY_SUFFIX "-${CORE_PLATFORM_NAME_LC}") + endif() endif() endif() |