[CMake] Use of CMAKE_LIBRARY_OUTPUT_DIRECTORY

David Aldrich David.Aldrich at EU.NEC.COM
Mon Sep 13 13:29:05 EDT 2010


Hi

I have tried to set the output directory for my library as follows:

# set destination directory for LIBRARY target (i.e. libKernel.a)
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ./_gnuRelease )

# build the Kernel static library 
add_library(Kernel STATIC ${SRCS})

however, the library is being created in the source directory, not in the directory I have specified.

Why is this please?

Best regards

David



More information about the CMake mailing list