cmake: fix install dirs reversing at second build

This commit is contained in:
Lephenixnoir 2021-05-29 20:11:12 +02:00
parent 4b90740d3b
commit 04e910441a
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -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()