cadabra2/cadabra2-add-pthread-to-cxxflags.patch

14 lines
506 B
Diff
Raw Normal View History

2018-04-06 15:47:12 +02:00
Index: cadabra2-2.2.0/CMakeLists.txt
===================================================================
--- cadabra2-2.2.0.orig/CMakeLists.txt
+++ cadabra2-2.2.0/CMakeLists.txt
@@ -80,7 +80,7 @@ debug_message("Initial compiler flags: $
# GCC
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Wno-unused-but-set-variable")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -Wall -Wno-unused-but-set-variable -pthread")
endif()
# Clang