diff --git a/bolt/runtime/CMakeLists.txt b/bolt/runtime/CMakeLists.txt --- a/bolt/runtime/CMakeLists.txt +++ b/bolt/runtime/CMakeLists.txt @@ -30,7 +30,7 @@ install(TARGETS bolt_rt_instr DESTINATION lib) install(TARGETS bolt_rt_hugify DESTINATION lib) -if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*") +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_library(bolt_rt_instr_osx STATIC instr.cpp ${CMAKE_CURRENT_BINARY_DIR}/config.h