don't try to build salsa.s (assembly language file) on windows, eliminate annoying warnings in optional.hpp

This commit is contained in:
dnotestein 2013-10-10 22:19:01 -04:00
parent 760c94d20f
commit bacf98ddb8
2 changed files with 11 additions and 3 deletions

View file

@ -54,13 +54,19 @@ endif()
option( UNITY_BUILD OFF )
FIND_PACKAGE( OpenSSL )
include_directories( ${Boost_INCLUDE_DIR} )
include_directories( ${OPENSSL_INCLUDE_DIR} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/vendor/salsa20 )
FIND_PACKAGE( OpenSSL )
include_directories( ${OPENSSL_INCLUDE_DIR} )
SET( ALL_OPENSSL_LIBRARIES ${OPENSSL_LIBRARIES} ${SSL_EAY_RELEASE} ${LIB_EAY_RELEASE})
if( UNIX )
SET(SALSA_SRC vendor/salsa20/salsa20.s)
endif()
set( fc_sources
src/uint128.cpp
src/variant.cpp
@ -124,7 +130,7 @@ set( fc_sources
vendor/cyoencode-1.0.2/src/CyoDecode.c
vendor/cyoencode-1.0.2/src/CyoEncode.c
# vendor/salsa20/ecrypt.c
vendor/salsa20/salsa20.s
${SALSA_SRC}
)
SET_PROPERTY( SOURCE
vendor/salsa20/salsa20.s
@ -138,6 +144,7 @@ add_subdirectory( vendor/easylzma )
setup_library( fc SOURCES ${sources} LIBRARY_TYPE STATIC )
set( BOOST_LIBRARIES ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_DATE_TIME_LIBRARY} ${Boost_CHRONO_LIBRARY} ${ALL_OPENSSL_LIBRARIES} ${Boost_COROUTINE_LIBRARY} ${Boost_CONTEXT_LIBRARY} )
set( BOOST_LIBRARIES ${BOOST_LIBRARIES} PARENT_SCOPE )
#add_executable( test_compress tests/compress.cpp )
#target_link_libraries( test_compress fc ${BOOST_LIBRARIES} )

View file

@ -7,6 +7,7 @@ namespace fc {
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable:4521) /* multiple copy ctors */
# pragma warning(disable:4522) /* multiple assignment operators */
#endif
/**