From 2d1c11c42fc609427c5dfe0d5596cdedc6424853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Thu, 22 Oct 2015 00:54:20 +0100 Subject: [PATCH] fix Release and portability --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3c4b3a9d..22320a175 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH}) set(CMAKE_PREFIX_PATH ~/Qt/5.4/clang_64/ ${CMAKE_PREFIX_PATH}) -set(CMAKE_BUILD_TYPE Debug) +# set(CMAKE_BUILD_TYPE Debug) if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW) # Set MACOSX_RPATH=YES by default @@ -236,7 +236,7 @@ message(STATUS "Original CMAKE_C_FLAGS ${CMAKE_C_FLAGS}") # Compilation Flags if (CMAKE_COMPILER_IS_GNUCC) - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3 -fomit-frame-pointer -fstrict-aliasing -freorder-blocks -fsched-interblock") + set(CMAKE_C_FLAGS_f "${CMAKE_C_FLAGS} -O3 -fomit-frame-pointer -fstrict-aliasing -freorder-blocks -fsched-interblock") endif() message(STATUS "Running with CMAKE_C_FLAGS ${CMAKE_C_FLAGS}") @@ -365,12 +365,12 @@ if (YAP_THREADS AND THREADS_FOUND) # recommended for new code. else() set (MAX_WORKERS 1) - set (MAX_THREADS 1) +set (MAX_THREADS 1) endif (YAP_THREADS AND THREADS_FOUND) -cmake_dependent_option (YAP_PTHREADLOCKING - "use pthread locking primitives for internal locking" ON - "NOT YAP_THREADS; NOT THREADS_FOUND" OFF) +cmake_dependent_option (YAP_USE_PTHREADS_LOCKS + "use pthread locking primitives for internal locking" 1 + "NOT YAP_THREADS; NOT THREADS_FOUND" 0) # # include OS and I/o stuff