On Thursday 10 April 2008, [EMAIL PROTECTED] wrote:
> Hello,
>
...
> PROJECT (TEST)
>
> SET(TEST_MODULE_SRCS   "whatever.cpp")
> SOURCE_GROUP(src FILES ${TEST_MODULE_SRCS})
>
> SET(TEST_MODULE_HDRS"whatever.h")
> SOURCE_GROUP(inc FILES ${TEST_MODULE_HDRS})
>
> ADD_LIBRARY(TEST    SHARED  ${TEST_MODULE_SRCS}  ${TEST_MODULE_HDRS}
>
> #add an External non-standard library depandency, located somewhere :
> IF(WIN32)
>  TARGET_LINK_LIBRARIES(
>  TEST
>  debug ${CMAKE_SOURCE_DIR}/path/to/debug/win32/External
>  optimized ${CMAKE_SOURCE_DIR}/path/to/release/win32/External  )
> ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
>  TARGET_LINK_LIBRARIES(
>  TEST
>  debug ${CMAKE_SOURCE_DIR}/path/to/debug/darwin/i686/External
>  optimized ${CMAKE_SOURCE_DIR}/path/to/release/darwin/i686/External  )
> ENDIF(WIN32)
> ------------------------------------------------------------------------
> --------
>
> this cmakelist.txt works well for "Visual Studio 8 2005" and "XCode"
> targets
>
> but for "Unix Makefiles" it generate a wrong dependancy rule that I
> finaly found in "build.make" generated file :
>
> "out_source_path/libTEST.dylib :
> (...)/path/to/release/darwin/i686/External"
>
> obviously, make don't now how to build
> "(...)/path/to/release/darwin/i686/External"

Why does it want to build it, i.e. doesn't this library exist ?

Alex
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to