diff --git a/CMakeLists.txt b/CMakeLists.txt index 88c7ee2b..7dadfd8c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -496,8 +496,6 @@ if(NOT LOCAL) endif() install(TARGETS ${PIP_MODULES} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) endif() - file(GLOB CMAKES "cmake/*.cmake" "cmake/*.in") - install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules) else() if(NOT PIP_FREERTOS) if(WIN32) @@ -512,6 +510,8 @@ else() endif() endif() endif() +file(GLOB CMAKES "cmake/*.cmake" "cmake/*.in") +install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules) if(NOT PIP_FREERTOS)