Skip to content

Commit

Permalink
Merge pull request #18 from kimkulling/kimkulling-unittests_fix
Browse files Browse the repository at this point in the history
Add prefix to option BUILD_UNITTESTS
  • Loading branch information
kimkulling authored Mar 16, 2021
2 parents 901c0db + d373c45 commit d0c3b9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
find_package(Threads)
endif()

option( BUILD_UNITTESTS
option( CPPCORE_BUILD_UNITTESTS
"Build unit tests."
ON
)
Expand Down Expand Up @@ -123,7 +123,7 @@ ADD_LIBRARY( cppcore SHARED
)


IF( BUILD_UNITTESTS )
IF( CPPCORE_BUILD_UNITTESTS )
SET( cppcore_test_src
test/CPPCoreCommonTest.cpp
)
Expand Down Expand Up @@ -177,4 +177,4 @@ IF( BUILD_UNITTESTS )
SET( platform_libs pthread )
ENDIF( WIN32 )
target_link_libraries( cppcore_unittest cppcore ${CMAKE_THREAD_LIBS_INIT} gtest_main ${platform_libs} )
ENDIF( BUILD_UNITTESTS )
ENDIF()

0 comments on commit d0c3b9c

Please sign in to comment.