Skip to content

Commit d0c3b9c

Browse files
authored
Merge pull request #18 from kimkulling/kimkulling-unittests_fix
Add prefix to option BUILD_UNITTESTS
2 parents 901c0db + d373c45 commit d0c3b9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
1010
find_package(Threads)
1111
endif()
1212

13-
option( BUILD_UNITTESTS
13+
option( CPPCORE_BUILD_UNITTESTS
1414
"Build unit tests."
1515
ON
1616
)
@@ -123,7 +123,7 @@ ADD_LIBRARY( cppcore SHARED
123123
)
124124

125125

126-
IF( BUILD_UNITTESTS )
126+
IF( CPPCORE_BUILD_UNITTESTS )
127127
SET( cppcore_test_src
128128
test/CPPCoreCommonTest.cpp
129129
)
@@ -177,4 +177,4 @@ IF( BUILD_UNITTESTS )
177177
SET( platform_libs pthread )
178178
ENDIF( WIN32 )
179179
target_link_libraries( cppcore_unittest cppcore ${CMAKE_THREAD_LIBS_INIT} gtest_main ${platform_libs} )
180-
ENDIF( BUILD_UNITTESTS )
180+
ENDIF()

0 commit comments

Comments
 (0)