From d98420fbc333cb9232bf059e36d1ac32ead1f05d Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 10 Dec 2018 01:38:07 +0300 Subject: [PATCH] CMake: use CMAKE_SOURCE_DIR instead of .. in some places --- asmjitsrc/CMakeLists.txt | 2 +- rpcs3/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asmjitsrc/CMakeLists.txt b/asmjitsrc/CMakeLists.txt index c07321e0fb..e2429d116b 100644 --- a/asmjitsrc/CMakeLists.txt +++ b/asmjitsrc/CMakeLists.txt @@ -3,7 +3,7 @@ set(ASMJIT_STATIC TRUE) set(ASMJIT_BUILD_X86 TRUE) set(ASMJIT_BUILD_ARM FALSE) set(ASMJIT_BUILD_TEST FALSE) -set(ASMJIT_DIR "${CMAKE_CURRENT_LIST_DIR}/../asmjit" CACHE PATH "Location of 'asmjit'") +set(ASMJIT_DIR "${CMAKE_SOURCE_DIR}/asmjit" CACHE PATH "Location of 'asmjit'") include("${ASMJIT_DIR}/CMakeLists.txt") diff --git a/rpcs3/CMakeLists.txt b/rpcs3/CMakeLists.txt index 7050470f14..53178044ef 100644 --- a/rpcs3/CMakeLists.txt +++ b/rpcs3/CMakeLists.txt @@ -31,7 +31,7 @@ endif() # finds Qt libraries and setups custom commands for MOC and UIC # Must be done here because generated MOC and UIC targets cant # be found otherwise -include(../3rdparty/qt5.cmake) +include(${CMAKE_SOURCE_DIR}/3rdparty/qt5.cmake) # subdirectories add_subdirectory(Emu)