Yes, from the Documentation:
The "general" keyword corresponds to all configurations, and is
purely optional (assumed if omitted).
I think the primary reason for having separate libraries on Windows but
not Redhat is that Visual Studio provides separate runtimes for Debug
and Release builds which can cause issues when intermixed.
Nils
On 09/05/2013 09:26 AM, Lars Lars wrote:
Using Latest version of CMake on Windows 7 and Redhat 6
Running the below code on both platforms produce slightly different
content in QT_LIBRARIES.
FIND_PACKAGE(Qt4 4.7.1 COMPONENTS QtCore QtGui)
IF (QT4_FOUND)
MESSAGE(STATUS "QT_LIBRARIES: ${QT_LIBRARIES}"
ENDIF()
On Windows I get;
"Optimized;c:/tools/qt/lib/QtCore4.dll;debug;c:/tools/qt/lib/QtCored4.dll;
Optimized;c:/tools/qt/lib/QtGui4.dll;debug;c:/tools/qt/lib/QtGuid4.dll;"
On Redhat I get;
"/tools/qt/lib/libQtCore.so;/tools/qt/lib/libQtGui.so"
The Redhat version is missing the keywords "Optimzed" and "Debug".
Reading the spec is appears the keywords are optional, is that correct?
So when no keyword is specified, then the library can be used with all
configurations?
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake