libftdi Archives

Subject: Re: MSVC build of libftdi git

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 26 Aug 2011 22:34:14 +0800
On Fri, Aug 26, 2011 at 10:30 PM, Xiaofan Chen <xiaofanc@xxxxxxxxx> wrote:
> The examples/CMakeLists.txt needs a bit of fix to work under
> Windows. I think this might not be the proper fix (as I do
> not know much about CMake).
>
>  examples/CMakeLists.txt |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
> index d2aeecb..a54f174 100644
> --- a/examples/CMakeLists.txt
> +++ b/examples/CMakeLists.txt
> @@ -2,9 +2,9 @@ option(EXAMPLES "Build example programs" ON)
>
>  if (EXAMPLES)
>     # Includes
> -    include( ${CMAKE_CURRENT_SOURCE_DIR}
> -            ${CMAKE_CURRENT_BINARY_DIR}
> -            )
> +    #include( ${CMAKE_CURRENT_SOURCE_DIR}
> +    #        ${CMAKE_CURRENT_BINARY_DIR}
> +    #        )
>
>     message(STATUS "Building example programs.")
>

Without the fix (for both libftdi git and libftdi-1.0 git), the error message
from CMake is as following.
"CMake Error: cmListFileCache: error can not open file
D:/work/libftdi/libftdi-1.0/examples
CMake Error at examples/CMakeLists.txt:5 (include):
  include could not find load file:

    D:/work/libftdi/libftdi-1.0/examples"



-- 
Xiaofan

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx

Current Thread