Skip to content

Commit

Permalink
Work with a build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
baruch committed Nov 6, 2015
1 parent 99b02dd commit 6f69475
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ else()
set(ARCH_INCLUDE "arch/arch-posix.h")
endif()

add_custom_command(OUTPUT include/arch-internal.h
COMMAND ln -s ../${ARCH_INCLUDE} include/arch-internal.h
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include/arch-internal.h
COMMAND ln -fs ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH_INCLUDE} ${CMAKE_CURRENT_SOURCE_DIR}/include/arch-internal.h
)

# Build diskscan
Expand All @@ -54,7 +54,7 @@ add_subdirectory(libscsicmd/src)
# Build diskscan library
add_library(diskscanlib STATIC lib/data.c lib/diskscan.c lib/sha1.c lib/system_id.c lib/verbose.c lib/disk.c
hdrhistogram/src/hdr_histogram.c hdrhistogram/src/hdr_histogram_log.c
hdrhistogram/src/hdr_encoding.c ${ARCH_SRC} include/arch-internal.h)
hdrhistogram/src/hdr_encoding.c ${ARCH_SRC} ${CMAKE_CURRENT_SOURCE_DIR}/include/arch-internal.h)
add_dependencies(diskscanlib scsicmd)

# Build diskscan cli command
Expand Down

0 comments on commit 6f69475

Please sign in to comment.