Verbose output option for CMake? (help finding windows libraries )
I'm trying to debug a problem with my CMakeLists.txt which works fine with Linux, but doesn't work with Win32.
I would like to turn on the verbose output of the cmake run, so that I get more information. However, all that is provided is the "Error:" messages in the CMake Problems tab.
In case any one wants to help me debug the problem, here is the relevent part of the CMakeLists.txt
IF(UNIX)
set( THIRDPARTY "/opt/pacbio/thirdparty/${CMAKE_SYSTEM_PROCESSOR}")
set( BOOST_ROOT "${THIRDPARTY}")
find_library(ZEROMQLIB libzmq.so "${THIRDPARTY}/lib" NO_DEFAULT_PATH)
ELSEIF (WIN32)
# find_library(ZEROMQLIB libzmq-v120-mt-4_0_4.lib "c:\\Program Files\\ZeroMQ 4.0.4\\lib" NO_DEFAULT_PATH)
# find_library(ZEROMQLIB libzmq-v120-mt-4_0_4.lib "c:/Program Files/ZeroMQ 4.0.4/lib" NO_DEFAULT_PATH)
# find_library(ZEROMQLIB libzmq-v120-mt-4_0_4.lib "/cygdrive/C/Program Files/ZeroMQ 4.0.4/lib" NO_DEFAULT_PATH)
find_library(ZEROMQLIB libzmq "/cygdrive/C/Program Files/ZeroMQ 4.0.4/lib" NO_DEFAULT_PATH)
message(${ZEROMQLIB})
ENDIF()
The UNIX part works, the Windows part doesn't work, and I've tried all of the commented out lines. The error I get is just
Error: The following variables are used in this project, but they are set to NOTFOUND
ZEROMQLIB
The library files are clearly there, but I don't know what path syntax to use.
Please sign in to leave a comment.
Mark,
as a workaround you may try changing this variable in CMake | Cache tool window to the correct path.