fix Release and portability
This commit is contained in:
parent
17e216c01b
commit
2d1c11c42f
@ -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_PREFIX_PATH ~/Qt/5.4/clang_64/ ${CMAKE_PREFIX_PATH})
|
||||||
|
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
# set(CMAKE_BUILD_TYPE Debug)
|
||||||
|
|
||||||
if(POLICY CMP0042)
|
if(POLICY CMP0042)
|
||||||
cmake_policy(SET CMP0042 NEW) # Set MACOSX_RPATH=YES by default
|
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
|
# Compilation Flags
|
||||||
if (CMAKE_COMPILER_IS_GNUCC)
|
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()
|
endif()
|
||||||
|
|
||||||
message(STATUS "Running with CMAKE_C_FLAGS ${CMAKE_C_FLAGS}")
|
message(STATUS "Running with CMAKE_C_FLAGS ${CMAKE_C_FLAGS}")
|
||||||
@ -365,12 +365,12 @@ if (YAP_THREADS AND THREADS_FOUND)
|
|||||||
# recommended for new code.
|
# recommended for new code.
|
||||||
else()
|
else()
|
||||||
set (MAX_WORKERS 1)
|
set (MAX_WORKERS 1)
|
||||||
set (MAX_THREADS 1)
|
set (MAX_THREADS 1)
|
||||||
endif (YAP_THREADS AND THREADS_FOUND)
|
endif (YAP_THREADS AND THREADS_FOUND)
|
||||||
|
|
||||||
cmake_dependent_option (YAP_PTHREADLOCKING
|
cmake_dependent_option (YAP_USE_PTHREADS_LOCKS
|
||||||
"use pthread locking primitives for internal locking" ON
|
"use pthread locking primitives for internal locking" 1
|
||||||
"NOT YAP_THREADS; NOT THREADS_FOUND" OFF)
|
"NOT YAP_THREADS; NOT THREADS_FOUND" 0)
|
||||||
|
|
||||||
#
|
#
|
||||||
# include OS and I/o stuff
|
# include OS and I/o stuff
|
||||||
|
Reference in New Issue
Block a user