Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2018-08-30 23:30:56 +0300
committerAntenore Gatta <antenore@simbiosi.org>2018-08-30 23:30:56 +0300
commitd52707c0ff5730b99008b9760ab70f0293fa79f3 (patch)
tree3eee285979c99ef233e1c34ae79aa7798599cd35 /cmake
parent853ba6754e54066a51268fd0e7040d0929ef6950 (diff)
Printing builds flags with remmina --full-version command option.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/ConfigOptions.cmake14
1 files changed, 13 insertions, 1 deletions
diff --git a/cmake/ConfigOptions.cmake b/cmake/ConfigOptions.cmake
index 3b041424a..a2844ca82 100644
--- a/cmake/ConfigOptions.cmake
+++ b/cmake/ConfigOptions.cmake
@@ -14,8 +14,20 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
+if((CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|x86|AMD64") AND (CMAKE_SIZEOF_VOID_P EQUAL 4))
+ set(TARGET_ARCH "x86")
+elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64") AND (CMAKE_SIZEOF_VOID_P EQUAL 8))
+ set(TARGET_ARCH "x64")
+elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "i386") AND (CMAKE_SIZEOF_VOID_P EQUAL 8) AND (APPLE))
+ # Mac is weird like that.
+ set(TARGET_ARCH "x64")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm*")
+ set(TARGET_ARCH "ARM")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc")
+ set(TARGET_ARCH "sparc")
+endif()
option(WITH_TRANSLATIONS "Generate translations." ON)