From b0c98d44646d789e83af4952d138db7c688d7be6 Mon Sep 17 00:00:00 2001 From: Ivan Pelipenko Date: Mon, 7 Sep 2020 12:37:32 +0300 Subject: [PATCH] cmake install fix --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)