|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3494982 ] CMake fails with sources from github
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 02 Mar 2012 17:26:08 -0800
Bugs item #3494982, was opened at 2012-02-27 04:12
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
CMake fails with:
CMake Error at src/CMakeLists.txt:18 (add_executable):
config-win32.h
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
The failing line is:
${CMAKE_SOURCE_DIR}/src/CMakeLists.txt:18:
curl_SOURCES is defined in ${CMAKE_BINARY_DIR}/src/Makefile.inc.cmake:
The problem is that add_executable() needs the full path to all source files outside the current dir. But config-win32.h is in ${CMAKE_SOURCE_DIR}/lib not in the current dir (src).
Solution:
Set the full path ${CMAKE_SOURCE_DIR}/lib/config-win32.h in Makefile.inc.cmake, e.g.:
SET(CURL_HFILES hugehelp.h setup.h ${CMAKE_SOURCE_DIR}/lib/config-win32.h config-mac.h [...]
----------------------------------------------------------------------
>Comment By: theret (theret)
Message:
----------------------------------------------------------------------
Comment By: Dan Fandrich (dfandrich)
Message:
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info