[cmake-developers] [CMake 0015913]: CMAKE_SYSTEM_NAME is not being set on cmake 3.3.2 Cygwin
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jan 12 16:29:15 EST 2016
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15913
======================================================================
Reported By: Gregory M. Baumgardner
Assigned To:
======================================================================
Project: CMake
Issue ID: 15913
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-01-12 16:29 EST
Last Modified: 2016-01-12 16:29 EST
======================================================================
Summary: CMAKE_SYSTEM_NAME is not being set on cmake 3.3.2
Cygwin
Description:
I installed cmake 3.3.2 directly from the Cygwin distribution, but for some
reason I cannot get the if(CYGWIN) to work properly. It is probably related to
the fact that the the CMAKE_SYSTEM_NAME is not being set. I have confirmed this
with a quick test, but have no idea what is wrong or why I cannot detect Cygwin.
The --system-information shows that the CMAKE_SYSTEM_NAME=CYGWIN, but it is not
being set the same when I run cmake against my CMakeLists.txt file. It would
be nice to have this feature worked as advertised.
Steps to Reproduce:
Run "cmake ." using supplied CMakeLists.txt file. Output is:
-- Hello World
-- Cygwin is and CMAKE_COMPILER_IS_CYGWIN = and CMAKE_SYSTEM_NAME =
I expected that it should read:
-- Hello World
-- Cygwin is 1 and CMAKE_COMPILER_IS_CYGWIN = 1 and CMAKE_SYSTEM_NAME = CYGWIN
Additional Information:
Avoid ctest truncation of output: CTEST_FULL_OUTPUT
========================================================
=== MAIN VARIABLES
========================================================
CMAKE_STATIC_LIBRARY_PREFIX == "lib"
CMAKE_STATIC_LIBRARY_SUFFIX == ".a"
CMAKE_SHARED_LIBRARY_PREFIX == "cyg"
CMAKE_SHARED_LIBRARY_SUFFIX == ".dll"
CMAKE_SHARED_MODULE_PREFIX == "cyg"
CMAKE_SHARED_MODULE_SUFFIX == ".dll"
CMAKE_DL_LIBS == "dl"
CMAKE_LIBRARY_PATH_FLAG == "-L"
CMAKE_LINK_LIBRARY_FLAG == "-l"
CMAKE_SKIP_RPATH == "NO"
CMAKE_SYSTEM_INFO_FILE == "Platform/CYGWIN"
CMAKE_SYSTEM_NAME == "CYGWIN"
CMAKE_SYSTEM == "CYGWIN-2.3.1(0.291/5/3)"
CMAKE_CXX_COMPILER == "/usr/bin/c++.exe"
CMAKE_C_COMPILER == "/usr/bin/cc"
CMAKE_COMPILER_IS_GNUCC == "1"
CMAKE_COMPILER_IS_GNUCXX == "1"
....
CMAKE_COMPILER_IS_CYGWIN "1"
CYGWIN "1"
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-01-12 16:29 Gregory M. BaumgardnerNew Issue
2016-01-12 16:29 Gregory M. BaumgardnerFile Added: CMakeLists.txt
======================================================================
More information about the cmake-developers
mailing list