Skip to content

Commit

Permalink
Merge branch 'cmake_clang'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcherry56 committed Sep 14, 2020
2 parents 08acbfe + 6edbc13 commit d6ad122
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ find_package(TCL)
# Zlib
include(FindZLIB)

find_package(Threads)

################################################################
#
# Locate CUDD bdd package.
Expand Down Expand Up @@ -481,6 +483,7 @@ target_link_libraries(sta
sta_swig
OpenSTA
${TCL_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
)

if (ZLIB_LIBRARIES)
Expand All @@ -493,11 +496,6 @@ endif()

message(STATUS "STA executable: ${STA_HOME}/app/sta")

# g++ std::thread apparently still needs -pthreads.
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_link_libraries(sta -pthread)
endif()

target_compile_options(sta PUBLIC ${STA_COMPILE_OPTIONS})

################################################################
Expand Down

0 comments on commit d6ad122

Please sign in to comment.