Re: [CMake] Circular dependencies because of file names?

2011-11-16 Thread Jookia
I've actually used that workaround, but it seems dirty as it shows up in IDE targets like Visual Studio or other IDEs or makefiles. In fact, I kind of like the 'generating /docs' part of the makefile. Would it just be smarter to rename the target to 'documentation'? -- Powered by www.kitwa

[CMake] Circular dependencies because of file names?

2011-11-14 Thread Jookia
I have the following code: # -- DOXYGEN find_package(Doxygen) set(docsDir "${CMAKE_BINARY_DIR}/docs/") add_custom_command(OUTPUT ${docsDir} COMMAND ${CMAKE_COMMAND} "-E" "make_directory" ${docsDir} VERBATIM) add_custom_target("docs" COMMAND "${DOXYGEN_EXECUTABLE}" "${CMAKE_SOU

Re: [CMake] Disabling regexing paths?

2011-07-21 Thread Jookia
Ah, thanks guys. STREQUAL does the trick. Sorry for the bother and lack of quotes. Jookia. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] Disabling regexing paths?

2011-07-20 Thread Jookia
Running the follow file causes problems: if(NOT "${CMAKE_BINARY_DIR}" MATCHES "${CMAKE_SOURCE_DIR}") endif() ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please k

[CMake] Disabling regexing paths?

2011-07-19 Thread Jookia
Greetings from the world of CMake problems, I've been using CMake for a while (love it!) but a while back I sent my project off to a person and he tried to generate the CMake project, but it failed. Why? Because he for some reason keeps all his data in /s . So when CMake had the path /s/progra