Skip to content

Commit 624d405

Browse files
committed
Add boost.compute as a submodule
1 parent 4d08152 commit 624d405

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "include/boost/compute"]
2+
path = compute
3+
url = https://github.com/boostorg/compute

CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if(USE_GPU)
3737
endif(USE_GPU)
3838

3939
if(UNIX OR MINGW OR CYGWIN)
40-
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -O3 -Wall -std=c++11")
40+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -O3 -Wall -std=c++11 -Wno-ignored-attributes")
4141
endif()
4242

4343
if(MSVC)
@@ -67,11 +67,13 @@ endif()
6767

6868

6969
SET(LightGBM_HEADER_DIR ${PROJECT_SOURCE_DIR}/include)
70+
SET(BOOST_COMPUTE_HEADER_DIR ${PROJECT_SOURCE_DIR}/compute/include)
7071

7172
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
7273
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
7374

7475
include_directories (${LightGBM_HEADER_DIR})
76+
include_directories (${BOOST_COMPUTE_HEADER_DIR})
7577

7678
if(APPLE)
7779
if (APPLE_OUTPUT_DYLIB)

compute

Submodule compute added at 82f588f

0 commit comments

Comments
 (0)