Skip to content

Commit

Permalink
Remove useless intermediate artefact directory from installation
Browse files Browse the repository at this point in the history
  • Loading branch information
hpwxf committed Nov 12, 2023
1 parent fb52162 commit 3ee7f2b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ set(EMBED_CUSTOM_BLAS ON)
# # target_link_libraries(${PROJECT_NAME} INTERFACE blas)
#endif ()

# Did not use FetchContent since generated CMakeLists.txt doesn't support a different generator for the external project
set(lbfgsb_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Lbfgsb.3.0")
set(lbfgsb_BINARY_DIR "${CMAKE_BINARY_DIR}/lbfgsb-build")
set(lbfgsb_INSTALL_DIR "${CMAKE_BINARY_DIR}/lbfgsb-installed")
set(lbfgsb_DIR "${lbfgsb_INSTALL_DIR}/lib/cmake/lbfgsb")

target_include_directories(
${PROJECT_NAME} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down Expand Up @@ -66,7 +60,4 @@ install(
FILE ${PROJECT_NAME}Config.cmake
NAMESPACE ${PROJECT_NAME}::
DESTINATION lib/cmake/${PROJECT_NAME}
)

install(DIRECTORY
${lbfgsb_INSTALL_DIR}/ DESTINATION ${CMAKE_INSTALL_PREFIX})
)

0 comments on commit 3ee7f2b

Please sign in to comment.