If you add 'OUTPUT_VARIABLE' and 'ERROR_VARIABLE' information to the execute_process call you should be able to dump the information using 'message' and see if the execute_process is running.
On Tue, Jan 29, 2019 at 3:04 PM Rob Boehne <r...@datalogics.com> wrote: > > I’m still not getting this script executed. I can copy the “message” output > and run it – and it does what I want, and I see it in cmake_install.cmake – > the message() and execute_process() calls are inside of identical > conditionals, but there’s no indication that it is executing, or that there > was any sort of problem. > > How do I get it to actually execute? > > > > In cmake_install.cmake: > > > > if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT > CMAKE_INSTALL_COMPONENT) > > message("running > C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 > Release") > > endif() > > > > if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT > CMAKE_INSTALL_COMPONENT) > > execute_process(COMMAND > "C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 > Release") > > endif() > > > > > > From: CMake <cmake-boun...@cmake.org> on behalf of Rob Boehne > <r...@datalogics.com> > Date: Thursday, January 24, 2019 at 9:49 AM > To: "cmake@cmake.org" <cmake@cmake.org> > Subject: [SPAM] Re: [CMake] resource installation > > > > Maybe because I misspelled it? Yes. Because I misspelled the script name. > > > > From: CMake <cmake-boun...@cmake.org> on behalf of Rob Boehne > <r...@datalogics.com> > Date: Thursday, January 24, 2019 at 9:40 AM > To: "cmake@cmake.org" <cmake@cmake.org> > Subject: [SPAM] [CMake] resource installation > > > > All, > > > > I’m attempting to install resource files (Fonts, etc.) into my product. To > that end, I have added this chunk of code to run a batch file that will copy > resources into the tree: > > > > if(WIN32) > > # > > # run the script to install the resources > > # > > install(CODE "message(\"running > ${CMAKE_CURRENT_SOURCE_DIR}/ResourceInstall.bat ${WIN_PLATFORM} > ${CMAKE_BUILD_TYPE}\")") > > install(CODE "execute_process(COMMAND > \"${CMAKE_CURRENT_SOURCE_DIR}/ResourceInstall.bat ${WIN_PLATFORM} > ${CMAKE_BUILD_TYPE}\")") > > endif() > > > > I see the output of the first line when I run the INSTALL target in VS 2013, > but it seems as though the script isn’t run. > > 1> -- Install configuration: "RelWithDebInfo" > > 1> running > C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/ResourceInstall.bat x64 > Release > > 1> -- Installing: > C:/Users/robb/Development/apdfl-sandbox/pdfl15_all/cmake_build/../dist/x64/release/CPlusPlus/Binaries/DL150BIBUtils.lib > > > > So the message is there, but the script isn’t run. > > > > I’m I missing a dependency, or formatting the string incorrectly? How do I > debug this? > > > > Thanks, > > > > Rob > > > > > > Rob Boehne > > Senior Software Architect | Datalogics, Inc. > > +1.312.853.8351 | r...@datalogics.com > > datalogics.com | blogs.datalogics.com > > Connect with us: Facebook | Twitter | LinkedIn | YouTube > > > > > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake