diff options
author | Kevin Adler <kadler@us.ibm.com> | 2020-11-02 17:22:10 (GMT) |
---|---|---|
committer | Kevin Adler <kadler@us.ibm.com> | 2020-11-13 21:40:51 (GMT) |
commit | b52970e86b7b487da182e3b767b256c5e577d269 (patch) | |
tree | c5ce81d7468db772fd9bad208ff0ff20ddadee34 | |
parent | 1cb029b33cefe5a5937ca446a00528787f5bafe4 (diff) | |
download | Ninja-b52970e86b7b487da182e3b767b256c5e577d269.zip Ninja-b52970e86b7b487da182e3b767b256c5e577d269.tar.gz Ninja-b52970e86b7b487da182e3b767b256c5e577d269.tar.bz2 |
Add libperfstat to AIX CMake build
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index efc4090..7cf6006 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,11 @@ else() if(CMAKE_SYSTEM_NAME STREQUAL "OS400" OR CMAKE_SYSTEM_NAME STREQUAL "AIX") target_sources(libninja PRIVATE src/getopt.c) endif() + + # Needed for perfstat_cpu_total + if(CMAKE_SYSTEM_NAME STREQUAL "AIX") + target_link_libraries(libninja PUBLIC "-lperfstat") + endif() endif() #Fixes GetActiveProcessorCount on MinGW |