summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Adler <kadler@us.ibm.com>2020-11-02 17:22:10 (GMT)
committerKevin Adler <kadler@us.ibm.com>2020-11-13 21:40:51 (GMT)
commitb52970e86b7b487da182e3b767b256c5e577d269 (patch)
treec5ce81d7468db772fd9bad208ff0ff20ddadee34
parent1cb029b33cefe5a5937ca446a00528787f5bafe4 (diff)
downloadNinja-b52970e86b7b487da182e3b767b256c5e577d269.zip
Ninja-b52970e86b7b487da182e3b767b256c5e577d269.tar.gz
Ninja-b52970e86b7b487da182e3b767b256c5e577d269.tar.bz2
Add libperfstat to AIX CMake build
-rw-r--r--CMakeLists.txt5
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