mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Add an IDE-friendly CMake target
This adds the target build_root, which is a target that installs fish into a directory under the build path.
This commit is contained in:
parent
f0ce62c873
commit
cd47f9b1a2
|
@ -184,3 +184,9 @@ SET_PROPERTY(TARGET CHECK-FISH-BUILD-VERSION-FILE build_fish_pc
|
|||
test_prep tests_buildroot_target
|
||||
build_lexicon_filter
|
||||
PROPERTY FOLDER cmake/InstallTargets)
|
||||
|
||||
# Make a target build_root that installs into the buildroot directory, for testing.
|
||||
SET(BUILDROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/buildroot)
|
||||
ADD_CUSTOM_TARGET(build_root
|
||||
COMMAND DESTDIR=${BUILDROOT_DIR} ${CMAKE_COMMAND}
|
||||
--build ${CMAKE_CURRENT_BINARY_DIR} --target install)
|
||||
|
|
Loading…
Reference in New Issue
Block a user