File: systemUname.cmake

package info (click to toggle)
isospec 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,472 kB
  • sloc: cpp: 9,530; python: 2,095; makefile: 180; ansic: 100; sh: 88
file content (20 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Ask that uname -s be performed and store the value in SYSTEM_UNAME_S for
# later reference.

macro(get_uname_string)

execute_process(COMMAND uname -s OUTPUT_VARIABLE SYSTEM_UNAME_S) 

if(${SYSTEM_UNAME_S} MATCHES "MINGW64_NT-10.*")
    message(STATUS "System detected as Windows10 with MINGW64, setting WIN32 AND WIN10MINGW64")
	# Note that WIN32 is set even on 64 bits systems.
	set(WIN32 1)
	set(WIN10MINGW64 1)
#else()
	#message(STATUS "System is not Windows.")
endif()

endmacro()

get_uname_string()