Skip to content

Commit

Permalink
fixed portability issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nlitsme committed Aug 28, 2023
1 parent dc7c547 commit a838c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake_find/Findcpputils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (TARGET cpputils)
endif()

# NOTE: you can avoid downloading cpputils, by symlinking to a downloaded version here:
find_path(CPPUTILS_DIR NAMES include/cpputils/string-lineenum.h PATHS symlinks/cpputils)
find_path(CPPUTILS_DIR NAMES include/cpputils/string-lineenum.h PATHS ${CMAKE_SOURCE_DIR}/symlinks/cpputils)
if(CPPUTILS_DIR STREQUAL "CPPUTILS_DIR-NOTFOUND")
include(FetchContent)
FetchContent_Populate(cpputils
Expand Down
2 changes: 1 addition & 1 deletion cmake_find/Finditslib.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if (TARGET itslib)
return()
endif()
find_path(ITSLIB_PATH NAMES include/itslib/stringutils.h PATHS symlinks/itslib)
find_path(ITSLIB_PATH NAMES include/itslib/stringutils.h PATHS ${CMAKE_SOURCE_DIR}/symlinks/itslib)
if(ITSLIB_PATH STREQUAL "ITSLIB_PATH-NOTFOUND")
include(FetchContent)
FetchContent_Populate(itslib
Expand Down

0 comments on commit a838c9b

Please sign in to comment.