From: TimePath Date: Sun, 30 Jul 2017 01:50:32 +0000 (+1000) Subject: Remove leading . in CMAKE_EXECUTABLE_SUFFIX if it has one X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c5a773afcea4ad985fbfa363c76bb743e677122d;p=xonotic%2Fnetradiant.git Remove leading . in CMAKE_EXECUTABLE_SUFFIX if it has one --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6abed33c..870cfef7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,7 @@ if (BUILD_RADIANT) endif () if (CMAKE_EXECUTABLE_SUFFIX) + string(REGEX REPLACE "^[.]" "" CMAKE_EXECUTABLE_SUFFIX ${CMAKE_EXECUTABLE_SUFFIX}) set(RADIANT_EXECUTABLE ${CMAKE_EXECUTABLE_SUFFIX}) else () execute_process(