[CMake] LIBRARY_OUTPUT_PATH,
EXECUTABLE_OUTPUT_PATH broken if CMake variables used.
Rob Mathews
Rob.Mathews at varolii.com
Wed May 9 10:39:52 EDT 2007
Thanks.
As far as $(OutDir), I'm staring at a makefile that reads:
INCLUDE_DIRECTORIES("$(OutDir)" ) ## Release or Debug
ADD_DEFINITIONS(${STANDARD_DEFINES} )
LINK_LIBRARIES( ${DEPENDS_DB} PerfLib opends60.lib xp_base)
SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH} ) ## DLLs need to
go in the BIN directory.
ADD_DEFINITIONS(${STANDARD_DEFINES} )
ADD_LIBRARY(xp_MBDeleteFile SHARED ${SRC})
I presume that if I remove that INCLUDE_DIRECTORIES tag, then it won't
build for some reason (else, why would someone have put that there -
it's not standard practice in the rest of the system... ) but I'm not
really sure why .. perhaps some earlier step generates a .h file that
this project needs????
So, yeah, there probably is some other way to do this.
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Wednesday, May 09, 2007 10:30 AM
To: Rob Mathews
Cc: Bill Hoffman; cmake at cmake.org
Subject: Re: [CMake] LIBRARY_OUTPUT_PATH, EXECUTABLE_OUTPUT_PATH broken
if CMake variables used.
Rob Mathews wrote:
> And $(OutDir)?
There isn't one. That's what LIBRARY_OUTPUT_PATH and
EXECUTABLE_OUTPUT_PATH are supposed to set. What are you doing with
$(OutDir)? There is probably another way to do it.
-Brad
> -----Original Message-----
> From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
> Sent: Wednesday, May 09, 2007 9:59 AM
> To: Rob Mathews
> Cc: cmake at cmake.org
> Subject: Re: [CMake] LIBRARY_OUTPUT_PATH, EXECUTABLE_OUTPUT_PATH
broken
> if CMake variables used.
>
> Rob Mathews wrote:
>> While we're at it, I notice some other VC variables that have crept
> in.
>> What's the CMake equivalent for these VC variables:?
>> $(OutDir)
>> $(ConfigurationName)
>>
> ${CMAKE_CFG_INTDIR}
>
> CMAKE_INTDIR will be a -D on the command line. CMAKE_CFG_INTDIR
will
> be expanded to . for makefiles that do not have config dirs, and to
the
> Debug, Release, etc directories on visual studio and Xcode.
>
> -Bill
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list