Fix for 'The "optimized" argument must be followed by a library.' cmake failure
authorunc0rr
Tue, 25 Oct 2011 13:30:02 +0400
changeset 6204 80cd75daf80f
parent 6203 38ddad39f08f
child 6205 7764cbe4ddd7
Fix for 'The "optimized" argument must be followed by a library.' cmake failure
QTfrontend/CMakeLists.txt
--- a/QTfrontend/CMakeLists.txt	Tue Oct 25 03:00:08 2011 +0200
+++ b/QTfrontend/CMakeLists.txt	Tue Oct 25 13:30:02 2011 +0400
@@ -14,7 +14,7 @@
 include(${QT_USE_FILE})
 
 # Check if we need zlib
-check_library_exists(${QT_QTCORE_LIBRARY} inflateInit2_ ${QT_LIBRARY_DIR} QT_PROVIDES_ZLIB_FUNCTIONS)
+check_library_exists("${QT_QTCORE_LIBRARY}" inflateInit2_ ${QT_LIBRARY_DIR} QT_PROVIDES_ZLIB_FUNCTIONS)
 
 if(NOT QT_PROVIDES_ZLIB_FUNCTIONS)
     find_package(ZLIB REQUIRED)