Skip to content

Commit 43a29df

Browse files
author
Timmy
committed
Merge pull request #77 from glehmann/gtest
build gtest only when BUILD_TEST is on
2 parents cf44e8a + 9542e1e commit 43a29df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ endif( )
197197
# This will define OPENCL_FOUND
198198
find_package( OpenCL )
199199

200-
# Find Google Test package
201-
include(gtest.cmake)
202-
203200
# Find Boost on the system, and configure the type of boost build we want
204201
set( Boost_USE_MULTITHREADED ON )
205202
set( Boost_USE_STATIC_LIBS ON )

src/tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ else( )
286286
set( runtime.library "${runtime.library}/${CMAKE_SHARED_LIBRARY_PREFIX}clBLAS${CMAKE_SHARED_LIBRARY_SUFFIX}" )
287287
endif( )
288288

289+
# Find Google Test package
290+
include(gtest.cmake)
291+
289292
if( GTEST_FOUND )
290293
if( CORR_TEST_WITH_ACML AND ACML_FOUND )
291294
include_directories(${OPENCL_INCLUDE_DIRS} ${GTEST_INCLUDE_DIRS}
File renamed without changes.

0 commit comments

Comments
 (0)