MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014457 | CMake | CMake | public | 2013-10-03 03:18 | 2016-06-10 14:31 |
Reporter | Zachary Deretsky | ||||
Assigned To | Kitware Robot | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 |
Product Version | CMake 2.8.11 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014457: 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@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@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@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 | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-10-03 03:18 | Zachary Deretsky | New Issue | |||
2013-10-03 03:33 | Zachary Deretsky | Note Added: 0033968 | |||
2013-10-03 08:08 | Brad King | Note Added: 0033970 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042383 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|