Use `CMAKE_CURRENT_SOURCE_DIR` to set some CMake-related paths (#2089)
- This prevents dependent projects that pull in melonDS via `FetchContent` from breaking
This commit is contained in:
parent
a82b5758bc
commit
841e3eb060
|
@ -7,8 +7,8 @@ endif()
|
||||||
|
|
||||||
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
|
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||||
set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_SOURCE_DIR}/cmake/DefaultBuildFlags.cmake")
|
set(CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/DefaultBuildFlags.cmake")
|
||||||
|
|
||||||
option(USE_VCPKG "Use vcpkg for dependency packages" OFF)
|
option(USE_VCPKG "Use vcpkg for dependency packages" OFF)
|
||||||
if (USE_VCPKG)
|
if (USE_VCPKG)
|
||||||
|
|
Loading…
Reference in New Issue