CMake: use CMAKE_SOURCE_DIR instead of .. in some places

This commit is contained in:
Nekotekina 2018-12-10 01:38:07 +03:00
parent fb8302817f
commit d98420fbc3
2 changed files with 2 additions and 2 deletions

View File

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

View File

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