mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 18:01:08 -06:00
AutoVcpkg: Copy bootstrap file from cmake folder
AutoVcpkg assumed that the bootstrap file was in the root project folder, and not in a cmake subfolder. Note: It is not correct to use ${CMAKE_CURRENT_LIST_DIR} since this is inside a function and whould still refer to the folder of the calling file. The more elegant solution would be to use ${CMAKE_CURRENT_FUNCTION_LIST_DIR}, but that is not available until CMake 3.17.
This commit is contained in:
parent
8d42533179
commit
697da887c4
@ -77,7 +77,7 @@ function (vcpkg_bootstrap)
|
||||
find_program(AUTO_VCPKG_EXECUTABLE
|
||||
vcpkg PATHS ${AUTO_VCPKG_ROOT})
|
||||
if (NOT AUTO_VCPKG_EXECUTABLE)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/vcpkg-bootstrap.cmake" "${AUTO_VCPKG_ROOT}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/cmake/vcpkg-bootstrap.cmake" "${AUTO_VCPKG_ROOT}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -P "${AUTO_VCPKG_ROOT}/vcpkg-bootstrap.cmake"
|
||||
WORKING_DIRECTORY ${AUTO_VCPKG_ROOT})
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user