Skip to content

Commit a51e256

Browse files
committed
Fix includes
1 parent 680eb8c commit a51e256

File tree

7 files changed

+21
-17
lines changed

7 files changed

+21
-17
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ add_definitions( -D_VARIADIC_MAX=10 )
2929
add_definitions( -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING=1)
3030

3131
INCLUDE_DIRECTORIES( BEFORE
32-
${CMAKE_HOME_DIRECTORY}/..
33-
${CMAKE_HOME_DIRECTORY}/include/
34-
${CMAKE_HOME_DIRECTORY}/contrib/googletest-1.10.0/gtest/include
35-
${CMAKE_HOME_DIRECTORY}/contrib/googletest-1.10.0/gtest
32+
include/
33+
contrib/googletest-1.10.0/gtest/include
34+
contrib/googletest-1.10.0/gtest
3635
)
3736

3837
link_directories(

contrib/googletest-1.10.x/googletest/generated/GTestConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ endmacro()
2424

2525
####################################################################################
2626
include(CMakeFindDependencyMacro)
27-
if ()
27+
if (ON)
2828
set(THREADS_PREFER_PTHREAD_FLAG )
2929
find_dependency(Threads)
3030
endif()

contrib/googletest-1.10.x/googletest/generated/GTestConfigVersion.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ else()
3030
endif()
3131

3232

33+
# if the installed project requested no architecture check, don't perform the check
34+
if("FALSE")
35+
return()
36+
endif()
37+
3338
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
3439
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
3540
return()
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
libdir=C:/Program Files (x86)/cppcore/lib
2-
includedir=C:/Program Files (x86)/cppcore/include
1+
libdir=/usr/local/lib
2+
includedir=/usr/local/include
33

44
Name: gmock
55
Description: GoogleMock (without main() function)
66
Version: 1.14.0
77
URL: https://github.com/google/googletest
88
Requires: gtest = 1.14.0
99
Libs: -L${libdir} -lgmock
10-
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=0
10+
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
libdir=C:/Program Files (x86)/cppcore/lib
2-
includedir=C:/Program Files (x86)/cppcore/include
1+
libdir=/usr/local/lib
2+
includedir=/usr/local/include
33

44
Name: gmock_main
55
Description: GoogleMock (with main() function)
66
Version: 1.14.0
77
URL: https://github.com/google/googletest
88
Requires: gmock = 1.14.0
99
Libs: -L${libdir} -lgmock_main
10-
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=0
10+
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
libdir=C:/Program Files (x86)/cppcore/lib
2-
includedir=C:/Program Files (x86)/cppcore/include
1+
libdir=/usr/local/lib
2+
includedir=/usr/local/include
33

44
Name: gtest
55
Description: GoogleTest (without main() function)
66
Version: 1.14.0
77
URL: https://github.com/google/googletest
88
Libs: -L${libdir} -lgtest
9-
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=0
9+
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
libdir=C:/Program Files (x86)/cppcore/lib
2-
includedir=C:/Program Files (x86)/cppcore/include
1+
libdir=/usr/local/lib
2+
includedir=/usr/local/include
33

44
Name: gtest_main
55
Description: GoogleTest (with main() function)
66
Version: 1.14.0
77
URL: https://github.com/google/googletest
88
Requires: gtest = 1.14.0
99
Libs: -L${libdir} -lgtest_main
10-
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=0
10+
Cflags: -I${includedir} -DGTEST_HAS_PTHREAD=1

0 commit comments

Comments
 (0)