The following variables exist for passing parameters to check_c_source_compiles:
CMAKE_REQUIRED_FLAGS CMAKE_REQUIRED_DEFINITIONS CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES Why do we not have CMAKE_REQUIRED_LINK_DIRECTORIES or some such equivalent? On Unix I can make the check_c_source_compiles work by appending -L/path/to/library to the value of CMAKE_REQUIRED_FLAGS. On Windows, this trick doesn't (with the correct compiler flags) seem to work. I end up getting errors about missing source file names, etc when check_c_source_compiles runs. How can I reliably pass the list of library directories?
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
