[CMake] cmake 2.4.8 RC 9
Mike Jackson
imikejackson at gmail.com
Wed Jan 2 12:16:55 EST 2008
On Jan 2, 2008, at 10:53 AM, Bill Hoffman wrote:
> Bill Hoffman wrote:
>> I have a new beta release for 2.4.8 ready for cmake. This will be
>> the last release of the 2.4.X branch. The next release will be
>> 2.6.0. So,
>> please make sure you test it if you are interested in a 2.4.8.
>> Send any
>> issues to me or the cmake list. Thanks.
>
> Just a reminder for folks to try 2.4.8 RC 9. I would like to
> create the final 2.4.8 very soon....
>
> -Bill
>
Downloaded 2.4.8 RC9 source and compiled with ICC version 9.1.040 on
OS X 10.4.11 (intel). I built RC-9 using CMake 2.4.7 if that matters.
I have a small example project with the following layout:
|--CMakeLists.txt
|--src
|----foo.cxx
|----foo.h
Here is my CMakeLists.txt file:
PROJECT (TestProj)
# ---------- Setup output Directories -------------------------
SET (LIBRARY_OUTPUT_PATH
${PROJECT_BINARY_DIR}/Bin
CACHE PATH
"Single Directory for all Libraries"
)
# --------- Setup the Executable output Directory -------------
SET (EXECUTABLE_OUTPUT_PATH
${PROJECT_BINARY_DIR}/Bin
CACHE PATH
"Single Directory for all Executables."
)
INSTALL(DIRECTORY ${PROJECT_SOURCE_DIR}/src DESTINATION include/
TestProj
PATTERN "*.h"
)
# ------------ End CMakeLists.txt -----------------------
Running cmake and then make install yields the following output:
[mjackson at Thor:Build]$ make install
Install the project...
-- Install configuration: "Debug"
-- Installing /tmp/include/TestProj/src
-- Installing /tmp/include/TestProj/src/foo.cxx
-- Installing /tmp/include/TestProj/src/foo.h
it is my understanding that ONLY the .h file should have been
installed. Is this a bug or just a misunderstanding of the usage of
INSTALL command?
Thanks
--
Mike Jackson
imikejackson & gmail * com
More information about the CMake
mailing list