[CMake] Select CMAKE_LIBRARY_OUTPUT_DIRECTORY_ in a CMakeLists.txt script

2011-03-01 Thread John McGehee
I am defining separate output paths for different configurations: CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG= bin/win32/dbg CMAKE_RUN TIME_OUTPUT_DIRECTORY_RELEASE = bin/win32/opt CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG= lib/win32/dbg CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE = lib/win32/opt

[CMake] ADD_CUSTOM_COMMAND() cannot depend on ADD_CUSTOM_TARGET()

2011-02-14 Thread John McGehee
C# themselves are working fine. Is there any way to work around this? Shall I enter this as a bug? This issue was raised earlier as http://www.cmake.org/pipermail/cmake/2010-November/040541.html but no solution was given. The excellent example is from that earlier m

[CMake] ADD_CUSTOM_COMMAND does not recognize source file property OBJECT_DEPENDS

2011-01-29 Thread John McGehee
build for "subBasic.i", and it appears in no file ("basic.i" is present in a build.make file). Does ADD_CUSTOM_COMMAND DEPENDS know about source file property OBJECT_DEPENDS? John McGehee http://www.voom.net ___ Powered by www.kitware

[CMake] How to find the path to the currently include() or find_package file()

2011-01-03 Thread John McGehee
I am using CMake 2.8 on Linux and Windows. When I include() or find_package() a .cmake file, is there a variable that I can use within the included .cmake file that will tell me its path? For example, # In CMakeLists.txt include(somePath/foo.cmake) Within somePath/foo.cmake, I want to incl

Re: [CMake] Virtual Studio 8 and 10 error: '/Tc' requires an argument

2010-08-06 Thread John McGehee
. John McGehee ___ 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

[CMake] Virtual Studio 8 and 10 error: '/Tc' requires an argument

2010-08-05 Thread John McGehee
I have my CMake build, test and install working on Linux, and now I'm trying to get it to build on Windows. On Windows XP SP3, I have installed: CMake 2.8.2 Virtual Studio Express 9 and 10 CMake Configure and Generate for either Virtual Studio 9 or 10 run without error. In VS, I open t