mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[ceres] Fix build on Linux. Closes #3490
This commit is contained in:
parent
29d04b8b40
commit
f38fbe4abf
@ -16,9 +16,6 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
# Ninja crash compiler with error:
|
||||
# "fatal error C1001: An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 255)"
|
||||
|
||||
set(SUITESPARSE OFF)
|
||||
if("suitesparse" IN_LIST FEATURES)
|
||||
set(SUITESPARSE ON)
|
||||
@ -62,7 +59,13 @@ vcpkg_configure_cmake(
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "CMake")
|
||||
|
||||
if(WIN32)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "CMake")
|
||||
else()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib${LIB_SUFFIX}/cmake/Ceres")
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Changes target search path
|
||||
|
Loading…
x
Reference in New Issue
Block a user