[cmake-developers] [CMake 0014457]: CMAKE_CXX_LIBRARY_ARCHITECTURE variable is not getting populated
Mantis Bug Tracker
mantis at public.kitware.com
Thu Oct 3 03:18:12 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14457
======================================================================
Reported By: Zachary Deretsky
Assigned To:
======================================================================
Project: CMake
Issue ID: 14457
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2013-10-03 03:18 EDT
Last Modified: 2013-10-03 03:18 EDT
======================================================================
Summary: CMAKE_CXX_LIBRARY_ARCHITECTURE variable is not
getting populated
Description:
The simple test case was created after many iterations by Stephen Kelly:
This CMakeLists.txt
zach at cloud1-12:~/QT/build$ cat ../CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
set(CMAKE_C_COMPILER $ENV{AZ_TOOL_PATH}/bin/gcc)
project(qtgui)
find_library(TEST_Qt5Gui_GL_LIBRARY GL)
message("TEST_Qt5Gui_GL_LIBRARY : ${TEST_Qt5Gui_GL_LIBRARY}")
message("CMAKE_CXX_LIBRARY_ARCHITECTURE ${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
produces this result:
zach at cloud1-12:~/QT/build$ cmake ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc
-- Check for working C compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++
-- Check for working CXX compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ --
works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
TEST_Qt5Gui_GL_LIBRARY : TEST_Qt5Gui_GL_LIBRARY-NOTFOUND
CMAKE_CXX_LIBRARY_ARCHITECTURE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zach/QT/build
If I set CMAKE_CXX_LIBRARY_ARCHITECTURE in this CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
set(CMAKE_C_COMPILER $ENV{AZ_TOOL_PATH}/bin/gcc)
set(CMAKE_CXX_LIBRARY_ARCHITECTURE x86_64-linux-gnu)
project(qtgui)
find_library(TEST_Qt5Gui_GL_LIBRARY GL)
message("TEST_Qt5Gui_GL_LIBRARY : ${TEST_Qt5Gui_GL_LIBRARY}")
message("CMAKE_CXX_LIBRARY_ARCHITECTURE ${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
I obtain:
zach at cloud1-12:~/QT/build$ cmake ..
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc
-- Check for working C compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/gcc --
works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++
-- Check for working CXX compiler:
/AZ/x86_64/kernel-3.2.0-25-virtual/glibc-2.15/2013-09-19-12.16.39/bin/c++ --
works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
TEST_Qt5Gui_GL_LIBRARY : /usr/lib/x86_64-linux-gnu/libGL.so
CMAKE_CXX_LIBRARY_ARCHITECTURE x86_64-linux-gnu
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zach/QT/build
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-10-03 03:18 Zachary DeretskyNew Issue
======================================================================
More information about the cmake-developers
mailing list