install(CODE) not triggered on windows with cmake 3.29.0
An install(CODE that calls execute_process to run a cmake file that in turn does a execute_process does not happen on windows with 3.29.0. It works with windows 3.28.4, and on mac (and ubunut) for 3.29.0 as well.
install(
CODE "execute_process(
COMMAND ${CMAKE_COMMAND}
-DFILE_TO_COPY_PATH=${FILE_TO_COPY_PATH}
-DEXECUTABLE_PATH=\${CMAKE_INSTALL_PREFIX}/energyplus${CMAKE_EXECUTABLE_SUFFIX}
-P ${PROJECT_SOURCE_DIR}/cmake/PythonGetLibAndLinkUp.cmake
)")
You can find a MCVE at https://github.com/jmarrec/debug-python-gha/tree/mcve_issue
On mac with 3.29, you see the messages being printed: https://github.com/jmarrec/debug-python-gha/actions/runs/8473162581/job/23216873513#step:5:15
On Windows, with 3.28 same: https://github.com/jmarrec/debug-python-gha/actions/runs/8473162579/job/23216873874#step:7:17
But on Windows with 3.29.0, you do not: https://github.com/jmarrec/debug-python-gha/actions/runs/8473162579/job/23216873620#step:7:16