Warning, /frameworks/kdelibs4support/cmake/systeminfo/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 macro(LOG line) 0002 message(STATUS ${line}) 0003 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/SystemInfo.txt "${line}\n") 0004 endmacro(LOG line) 0005 0006 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/SystemInfo.txt "CMake system information: \n") 0007 message(STATUS "-----------------------------------") 0008 message(STATUS "Printing system information: ") 0009 message(STATUS "-----------------------------------") 0010 0011 log("C compiler: ${CMAKE_C_COMPILER}") 0012 log("CXX compiler: ${CMAKE_CXX_COMPILER}") 0013 log("C compiler is gcc: ${CMAKE_COMPILER_IS_GNUCC}") 0014 log("CXX compiler is g++: ${CMAKE_COMPILER_IS_GNUCXX}") 0015 log("System: ${CMAKE_SYSTEM}") 0016 log("System name: ${CMAKE_SYSTEM_NAME}") 0017 log("System version: ${CMAKE_SYSTEM_VERSION}") 0018 0019 if(UNIX) 0020 log("This is some kind of UNIX environment") 0021 endif() 0022 0023 if(WIN32) 0024 log("This is Windows") 0025 endif() 0026 0027 if(APPLE) 0028 log("This is an Apple") 0029 endif() 0030 0031 if(MINGW) 0032 log("This is MinGW") 0033 endif() 0034 0035 if(CYGWIN) 0036 log("This is Cygwin") 0037 endif() 0038 0039 if(BORLAND) 0040 log("This is for a Borland compiler") 0041 endif() 0042 0043 0044 message(STATUS "-----------------------------------") 0045