Skip to content

Commit 9e3a6d6

Browse files
authored
Merge pull request #853 from os-fpga/latest_vpr_add_pthread_flag
latest_vpr: add pthread flag to fix CentOS7 linking
2 parents c577797 + 5b51f87 commit 9e3a6d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/CMAKE_fix/PATCHED_vpr_latest/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ if(NOT MSVC)
116116
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g3")
117117
endif()
118118

119-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -O3 -mavx2")
120-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -O3 -mavx2")
119+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -O3 -mavx2 -pthread")
120+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -O3 -mavx2 -pthread")
121+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fPIC -O3 -mavx2 -pthread")
121122

122123
#
123124
# Warning flags

0 commit comments

Comments
 (0)