I don't suppose anyone had any thought on this one did they?
Yours hopefully, Joe From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Josef Karthauser Sent: 13 December 2007 18:31 To: cmake@cmake.org Subject: [CMake] PRE_BUILD custom commands don't appear to be working.... I'm trying to add a prebuild custom command to a NMake target, but it doesn't appear to be running in the right place. Here's an example: CMakelists.txt: Project(Hello) add_library (Hello hello.cxx hello.h) add_custom_command(TARGET Hello PRE_BUILD COMMAND ${CMAKE_COMMAND} ARGS -P ${PROJECT_SOURCE_DIR}/Hello.cmake ) Hello.cmake MESSAGE("Hello.cmake ran") So, I would hope that the Hello.cmake file would get run first, but it appears to be run as if it is a POST_BUILD. $ cmake.exe -G "NMake Makefiles" . ... stuff .. $ nmake Microsoft (R) Program Maintenance Utility Version 8.00.50727.762 Copyright (C) Microsoft Corporation. All rights reserved. [100%] Building CXX object CMakeFiles/Hello.dir/hello.obj hello.cxx Linking CXX static library Hello.lib Prebuild rule ran [100%] Built target Hello [EMAIL PROTECTED] /c/Devel/SVN/trunk/build/test/qq/Hello Doesn't PRE_BUILD request that that command gets run before the hello.cxx file gets compiled? Joe
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake