@ -25,10 +25,10 @@ include_directories(${GMMXX_INCLUDE_DIR})
# # C M a k e o p t i o n s o f S t o R M
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
option ( DEBUG "Sets whether the DEBUG mode is used" ON )
option ( USE_POPCNT "Sets whether the popcnt instruction is going to be used." ON )
option ( STORM_ DEBUG "Sets whether the DEBUG mode is used" ON )
option ( STORM_ USE_POPCNT "Sets whether the popcnt instruction is going to be used." ON )
option ( USE_BOOST_STATIC_LIBRARIES "Sets whether the Boost libraries should be linked statically." ON )
option ( ENABLE_INTELTBB "Sets whether the Intel TBB is available ." OFF )
option ( STORM_USE_INTELTBB "Sets whether the Intel TBB libraries should be used ." OFF )
option ( STORM_USE_COTIRE "Sets whether Cotire should be used (for building precompiled headers)." OFF )
option ( LINK_LIBCXXABI "Sets whether libc++abi should be linked." OFF )
option ( USE_LIBCXX "Sets whether the standard library is libc++." OFF )
@ -66,7 +66,7 @@ find_package(TBB)
find_package ( Threads REQUIRED )
# I f t h e D E B U G o p t i o n w a s t u r n e d o n , w e w i l l t a r g e t a d e b u g v e r s i o n a n d a r e l e a s e v e r s i o n o t h e r w i s e
if ( DEBUG )
if ( STORM_ DEBUG)
set ( CMAKE_BUILD_TYPE "DEBUG" )
else ( )
set ( CMAKE_BUILD_TYPE "RELEASE" )
@ -109,9 +109,9 @@ if(CMAKE_COMPILER_IS_GNUCC)
# ( T h o m a s H e i n e m a n n , 2 0 1 2 - 1 2 - 2 1 )
# T u r n o n p o p c n t i n s t r u c t i o n i f desired ( yes by default )
if ( USE_POPCNT )
if ( STORM_ USE_POPCNT)
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt" )
endif ( USE_POPCNT )
endif ( STORM_ USE_POPCNT)
# S e t t h e n o - s t r i c t - a l i a s i n g t a r g e t f o r G C C
set_source_files_properties ( ${ CONVERSIONHELPER_TARGET } PROPERTIES COMPILE_FLAGS " -fno-strict-aliasing " )
@ -155,9 +155,9 @@ else(CLANG)
set ( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g" )
# T u r n o n p o p c n t i n s t r u c t i o n i f desired ( yes by default )
if ( USE_POPCNT )
if ( STORM_ USE_POPCNT)
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mpopcnt" )
endif ( USE_POPCNT )
endif ( STORM_ USE_POPCNT)
# S e t t h e n o - s t r i c t - a l i a s i n g t a r g e t f o r C l a n g
set_source_files_properties ( ${ CONVERSIONHELPER_TARGET } PROPERTIES COMPILE_FLAGS " -fno-strict-aliasing " )
@ -188,7 +188,7 @@ else()
endif ( )
# I n t e l T B B D e f i n e s
if ( TBB_FOUND AND ENABL E_INTELTBB)
if ( TBB_FOUND AND STORM_US E_INTELTBB)
set ( STORM_CPP_INTELTBB_DEF "define" )
else ( )
set ( STORM_CPP_INTELTBB_DEF "undef" )
@ -287,7 +287,7 @@ if ((NOT Boost_LIBRARY_DIRS) OR ("${Boost_LIBRARY_DIRS}" STREQUAL ""))
set ( Boost_LIBRARY_DIRS "${Boost_INCLUDE_DIRS}/stage/lib" )
endif ( )
link_directories ( ${ Boost_LIBRARY_DIRS } )
if ( TBB_FOUND AND ENABL E_INTELTBB)
if ( TBB_FOUND AND STORM_US E_INTELTBB)
link_directories ( ${ TBB_LIBRARY_DIRS } )
endif ( )
@ -425,13 +425,13 @@ endif(UNIX AND NOT APPLE)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
if ( TBB_FOUND )
message ( STATUS "StoRM - Found Intel TBB with interface version ${TBB_INTERFACE_VERSION}." )
if ( ENABL E_INTELTBB)
if ( STORM_US E_INTELTBB)
message ( STATUS "StoRM - Linking with Intel TBB in ${TBB_LIBRARY_DIRS}." )
include_directories ( ${ TBB_INCLUDE_DIRS } )
target_link_libraries ( storm tbb tbbmalloc )
target_link_libraries ( storm-functional-tests tbb tbbmalloc )
target_link_libraries ( storm-performance-tests tbb tbbmalloc )
endif ( ENABL E_INTELTBB)
endif ( STORM_US E_INTELTBB)
endif ( TBB_FOUND )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #