Skip to content

Add prefix to option BUILD_UNITTESTS #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()