diff options
author | Lukas Rusak <lorusak@gmail.com> | 2020-10-29 09:19:52 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2020-10-29 09:19:52 -0700 |
commit | c584d75b66305db45ad29ff4cd349997c72af5b5 (patch) | |
tree | fd5eb9c9bada1c846f2f29e27fbb153386b85108 /cmake | |
parent | 56aa1f9d944fba970ba7f2c338be7c9d9ad31353 (diff) |
[cmake] guard setting APP_BINARY_SUFFIX to linux/freebsd only
Diffstat (limited to 'cmake')
-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() |