Skip to content

Commit

Permalink
make find_package portable
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a4137a)
  • Loading branch information
thorsten-klein authored and jschwe committed May 1, 2024
1 parent 118e926 commit 2e2893e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CorrosionConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (Corrosion_FOUND)
return()
endif()

list(APPEND CMAKE_MODULE_PATH "@CMAKE_INSTALL_FULL_DATADIR@/cmake")
list(APPEND CMAKE_MODULE_PATH "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_DATADIR@/cmake")

set(CORROSION_NATIVE_TOOLING_INSTALLED @CORROSION_NATIVE_TOOLING@)
if(CORROSION_NATIVE_TOOLING_INSTALLED AND NOT TARGET Corrosion::Generator)
Expand Down

0 comments on commit 2e2893e

Please sign in to comment.