소스 검색

-wno-deprecated messages

Marc-Olivier Killijian 8 년 전
부모
커밋
e6514154ec
3개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 3
      CMakeCompilers.txt
  2. 1 1
      CMakeLists.txt
  3. 2 2
      helper_script.sh

+ 5 - 3
CMakeCompilers.txt

@@ -21,14 +21,16 @@ set(CMAKE_EXE_LINKER_FLAGS "-fopenmp")
 if(CMAKE_BUILD_TYPE MATCHES Debug)
   add_definitions(-DCHECK_STRICTMOD)
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
+  message(STATUS "Building DEBUG version")
 else()
-	set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3")
-	foreach(FLAG -march=native -mtune=native -funroll-loops)
+  set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O3")
+  message(STATUS "Building DEBUG version")
+  foreach(FLAG -march=native -mtune=native -funroll-loops)
 		string(REGEX REPLACE -= _ FLAG_ID ${FLAG})
 		string(TOUPPER ${FLAG_ID} FLAG_ID)
 		CHECK_CXX_COMPILER_FLAG(${FLAG} COMPILER_SUPPORTS${FLAG_ID})
 	    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${FLAG}")
-	endforeach()
+  endforeach()
   # For OSX use clang
   if(APPLE)
 	    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse -Wa,-q")

+ 1 - 1
CMakeLists.txt

@@ -10,7 +10,7 @@ endif()
 
 set(CMAKE_C_COMPILER "gcc")
 set(CMAKE_CXX_COMPILER "g++")
-set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp -ggdb")
+set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp -ggdb -Wno-deprecated-declarations")
 set(CMAKE_EXE_LINKER_FLAGS "-fopenmp")
 set(BOOST_ROOT "./local")
 

+ 2 - 2
helper_script.sh

@@ -16,9 +16,9 @@
 # *  along with XPIR.  If not, see <http://www.gnu.org/licenses/>.
 #*/
 
-wget --no-check-certificate https://github.com/XPIR-team/XPIR-dependencies/raw/master/dependencies.tgz
+#wget --no-check-certificate https://github.com/XPIR-team/XPIR-dependencies/raw/master/dependencies.tgz
 tar zxf dependencies.tgz
-rm dependencies.tgz
+#rm dependencies.tgz
 mkdir local
 
 CONFIGURE="./configure CFLAGS=-I$PWD/local/include LDFLAGS=-L$PWD/local/lib --prefix=$PWD/local/"