-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eztrace: 1.1-11 -> 2.1.1, fix build, adopt
- Loading branch information
Showing
2 changed files
with
70 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b36a8a94..61019e71 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -32,7 +32,13 @@ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||
# CMakeFind repository | ||
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake_modules) | ||
|
||
-find_package (OTF2 REQUIRED) | ||
+PKG_CHECK_MODULES(OTF2 REQUIRED otf2) | ||
+SET(OTF2_INCLUDE_PATH ${OTF2_INCLUDE_DIRS}) | ||
+SET(OTF2_LIBRARY ${OTF2_LIBRARIES}) | ||
+STRING(REPLACE "." ";" _VERSION ${OTF2_VERSION}) | ||
+LIST(GET _VERSION 0 OTF2_MAJOR_VERSION) | ||
+LIST(GET _VERSION 1 OTF2_MINOR_VERSION) | ||
+ | ||
if (NOT OTF2_FOUND) | ||
message(FATAL_ERROR "libotf2 not found.") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters