[CMake] set_target_properties with Xcode

2008-10-16 Thread Ben Ratzlaff
I cannot seem to get the following to work when using the Xcode generator (Unix Makefile and Visual Studio ones work fine) SET_TARGET_PROPERTIES (${PLUGIN_NAME} PROPERTIES LINK_FLAGS -L${LIBRARY_OUTPUT_PATH}/.. LINK_FLAGS_DEBUG X LINK_FLAGS_RELEASE YY

Re: [CMake] How to make Visual Studio .vcproj with relative paths

2008-03-25 Thread Ben Ratzlaff
I cant help but comment that this is unnecessarily complicated when all that is desired is simply compiling without the Cmake dependency. Conceptually it should not be this hard. Recently I was tasked to help develop a small static library (4 source files), the primay developer works in Linux and

Re: [CMake] generating GNU makefiles for MSVC

2008-03-05 Thread Ben Ratzlaff
On Wed, Mar 5, 2008 at 4:00 PM, Randal Walser [EMAIL PROTECTED] wrote: Can anyone tell me how I can use cmake to generate GNU makefiles which invoke the MSVC compiler? The Cygwin version of cmake seems to insist on gcc. Likewise, when I specify Unix Makefiles to CMakeSetup, it resets

Re: [CMake] Brandon Van Every

2008-03-04 Thread Ben Ratzlaff
Why do we need to keep him around? If Bill has determined that such steps are needed, then I must conclude that something more serious has happened behind the scenes that we are not aware of. ___ CMake mailing list CMake@cmake.org

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-09 Thread Ben Ratzlaff
On 10/9/07, David Cole [EMAIL PROTECTED] wrote: The problem (from a CMake perspective) is how to go about giving override control of that setting to CMakeLists.txt files / developers using CMake. If anybody has a reasonable suggestion of how to achieve this in a non-Xcode-centric way (i.e.,

Re: [CMake] Headers listing in Visual Studio

2007-10-03 Thread Ben Ratzlaff
Here is how I do it: SET (MY_CPP source files ) SET (MY_H header files ) SOURCE_GROUP (name_of_group FILES ${MY_CPP} ) SOURCE_GROUP (name_of_group\\headers FILES ${MY_H} ) SET (MY_SRC ${MY_CPP} ${MY_H} ) # add sources to library ADD_LIBRARY (${PROJECT} ${MY_SRC} )

[CMake] /DELAYLOAD flag doesnt stick when making a vc8 project

2007-09-20 Thread Ben Ratzlaff
I've tried: SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /DELAYLOAD:dnssd.dll ) and SET_TARGET_PROPERTIES (${MY_PROJECT} PROPERTIES LINK_FLAGS /DELAYLOAD:dnssd.dll ) and after I build the project in Visual Studio 2005, I am greeted with the dialog that says dnssd.dll is

Re: [CMake] EXECUTE_PROCESS - I can't copy files on Windows

2007-03-21 Thread Ben Ratzlaff
Wouldn't it be better to have the compilation destination be where the tests expect? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Linking Behavior of Static Libraries on Windows

2007-03-21 Thread Ben Ratzlaff
Here is how I got around what you describe. My project sounds pretty similar in how it is set up when building the exe: IF (PLATFORM MATCHES win32) IF (CMAKE_GENERATOR MATCHES Visual Studio 8 2005) SET_TARGET_PROPERTIES (${project_exe} PROPERTIES LINK_FLAGS

[CMake] Compile .c as c++ - VS2005

2007-03-20 Thread Ben Ratzlaff
When creating a visual studio 2005 project, I need to be able to compile .c files as a c++ (/FP switch). Is there any way to achieve this outside of renaming the files? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Compile .c as c++ - VS2005

2007-03-20 Thread Ben Ratzlaff
I have found that if I rename my .c files to .C then cmake does not emit the XML in the .vsproj to change the build mode. On 3/20/07, Ben Ratzlaff [EMAIL PROTECTED] wrote: It did not work for me I have also tried: SET (CMAKE_C_SOURCE_FILE_EXTENSIONS ) SET