Skip to content

Commit

Permalink
Fix find_package related bug in build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristopherson committed Dec 22, 2022
1 parent da568f8 commit 76e7aad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Master CMAKE Build Script
cmake_minimum_required(VERSION 3.17)
cmake_minimum_required(VERSION 3.24)
project(
linalg
LANGUAGES Fortran C
Expand Down
2 changes: 1 addition & 1 deletion cmake/helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ endfunction()
# Links the supplied library
function(link_library targ lib include_dir)
target_link_libraries(${targ} ${lib})
target_include_directories(${targ} PUBLIC ${include_dir})
target_include_directories(${targ} PUBLIC $<BUILD_INTERFACE:${include_dir}>)
endfunction()

# ------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions dependencies/ferror/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ else()
FetchContent_Declare(
ferror
GIT_REPOSITORY "https://github.com/jchristopherson/ferror"
OVERRIDE_FIND_PACKAGE
)

FetchContent_MakeAvailable(ferror)
Expand Down

0 comments on commit 76e7aad

Please sign in to comment.