[CMake] shared lib on mac

Nicolas Slythe (Intern) Nicolas.Slythe at autodesk.com
Mon Mar 2 15:06:02 EST 2009


SET(TARGET_SOURCE
    ./utils/utils.cxx
    ./test/test.cxx
    ./test/test1.cxx
)

ADD_DEFINITIONS (
    -DK_NODLL
    -DK_DISABLE_UI
)

ADD_LIBRARY  (
     test
     SHARED
    ${TARGET_SOURCE}
)

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Alexander Neundorf
Sent: Monday, March 02, 2009 2:57 PM
To: cmake at cmake.org
Subject: Re: [CMake] shared lib on mac

On Monday 02 March 2009, Nicolas Slythe (Intern) wrote:
> When I add a library target with add_library command
> If my lib type is SHARED I get this error at link time on apple "no input
> files" and if I look at the command there is realy no input file ".o" 
> specified. And if the lib is static everything work fine with the same
> source file.
>
> Is there something I missed

Please show us the relevant parts of the CMakeLists.txt which cause the 
problem for you, otherwise we can't really help.

Alex
_______________________________________________
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


More information about the CMake mailing list