From 04e910441a418fcd8e7c12651a6f8b50e7456b10 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 29 May 2021 20:11:12 +0200 Subject: [PATCH] cmake: fix install dirs reversing at second build --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 488606d..df5a90a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,9 @@ if(FXLIBC_TARGET STREQUAL gint) # Default to fxSDK install path if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "${FXSDK_COMPILER_INSTALL}" CACHE PATH "..." FORCE) + endif() + + if(CMAKE_INSTALL_PREFIX STREQUAL "${FXSDK_COMPILER_INSTALL}") set(LIBDIR ".") set(INCDIR "include") endif()