Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6a3c6c

Browse files
committed
Boost build workaround
1 parent0a20fdd commitb6a3c6c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎CMakeLists.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ find_package( OpenSSL )
3434
find_package( Threads )
3535
set(CMAKE_VERBOSE_MAKEFILEtrue)
3636

37+
include_directories("./")# before dependent includes!
38+
3739
add_definitions(-DBOOST_ALL_NO_LIB)
3840

3941
if (CMAKE_BUILD_TYPEMATCHES Debug)
@@ -49,6 +51,12 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
4951
set (CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -Wall")
5052
endif()
5153

54+
# http://boost.2283326.n4.nabble.com/config-clang-int128-support-td4653826.html
55+
check_symbol_exists(__SIZEOF_INT128__"" has_int128)
56+
if(NOTMSVCAND has_int128)
57+
set(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -DBOOST_HAS_INT128=1")
58+
endif()
59+
5260
if(NOTMSVC)
5361
set(CMAKE_CXX_FLAGS"${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
5462
endif()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp