Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Apr 6, 2024
1 parent d02f6ad commit 62a1e5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/c/config/perfflowaspect-config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if (NOT PERFFLOWASPECT_CONFIG_LOADED)
set(PERFFLOWASPECT_VERSION "@PROJECT_VERSION@")
set(PERFFLOWASPECT_DIR "@CMAKE_INSTALL_PREFIX@")
set(PERFFLOWASPECT_LIB_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
set(PERFFLOWASPECT_VERSION "@PROJECT_VERSION@")
set(PERFFLOWASPECT_DIR "@CMAKE_INSTALL_PREFIX@")
set(PERFFLOWASPECT_LIB_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")

include(CMakeFindDependencyMacro)

Expand Down
5 changes: 2 additions & 3 deletions src/c/examples/using-with-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ endif()
# Check for valid PerfFlowAspect install
#
get_filename_component(PERFFLOWASPECT_DIR ${PERFFLOWASPECT_DIR} ABSOLUTE)
if(NOT EXISTS ${PERFFLOWASPECT_DIR}/lib/cmake/perfflowaspect-config.cmake)
message(FATAL_ERROR "Could not find PerfFlowAspect CMake include file
(${PERFFLOWASPECT_DIR}/lib/cmake/perfflowaspect-config.cmake)")
if(NOT EXISTS ${PERFFLOWASPECT_DIR}/share/perfflowaspect-config.cmake)
message(FATAL_ERROR "Could not find PerfFlowAspect CMake include file (${PERFFLOWASPECT_DIR}/share/perfflowaspect-config.cmake)")
endif()

#

0 comments on commit 62a1e5c

Please sign in to comment.