Skip to content

Commit

Permalink
Fix incorrect usage of internal variable PACKAGE_PREFIX_DIR (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Apr 14, 2024
1 parent 362a7d2 commit 645bcf5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmake/f3dConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# f3d_MODULE_EXTERNAL_RENDERING Will be enabled if F3D was built with external rendering support
# f3d_MODULE_RAYTRACING Will be enabled if F3D was built with raytracing support
# f3d_PLUGINS_INSTALL_DIR Path to the location to install plugins so that F3D can find them
# f3d_PREFIX_DIR Absolute path to the directory where F3D was installed
#
# It is also possible to look for optional components.
#
Expand Down Expand Up @@ -39,6 +40,8 @@

@PACKAGE_INIT@

get_filename_component(f3d_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)

include(${CMAKE_CURRENT_LIST_DIR}/f3dConfigVersion.cmake)
message(STATUS "Found f3d ${PACKAGE_VERSION}")

Expand Down
2 changes: 1 addition & 1 deletion cmake/library-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include("${CMAKE_CURRENT_LIST_DIR}/f3dLibraryTargets.cmake")

# Provide f3d_INCLUDE_DIR
set_and_check(f3d_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
set_and_check(f3d_INCLUDE_DIR "${f3d_PREFIX_DIR}/include")

# Set the required variable
message(STATUS "Found f3d library component")
Expand Down
2 changes: 1 addition & 1 deletion cmake/pluginsdk-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/f3dPlugin.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/../f3d_vtkext/f3d_vtkext-targets.cmake")

# Provide f3d_INCLUDE_DIR
set_and_check(f3d_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
set_and_check(f3d_INCLUDE_DIR "${f3d_PREFIX_DIR}/include")

# Set the required variable
message(STATUS "Found f3d plugin component")
Expand Down

0 comments on commit 645bcf5

Please sign in to comment.