Skip to content

Commit

Permalink
Review fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Gianfranco Berardi <[email protected]>
  • Loading branch information
gberardi-pillar committed Feb 5, 2024
1 parent cbdaf38 commit 41401db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ find_package(everest-cmake 0.1 REQUIRED
)

# options
option(${PROJECT_NAME}_BUILD_TESTING "Build unit tests, used if included as dependency" OFF)
option(BUILD_TESTING "Build unit tests, used if standalone project" OFF)
option(EVSE_SECURITY_INSTALL "Install the library (shared data might be installed anyway)" ${EVC_MAIN_PROJECT})

# dependencies
Expand Down Expand Up @@ -53,7 +55,7 @@ if (EVSE_SECURITY_INSTALL)
)
endif()

if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR ${PROJECT_NAME}_BUILD_TESTING) AND BUILD_TESTING)
if((${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME} OR ${PROJECT_NAME}_BUILD_TESTING) AND BUILD_TESTING)
include(CTest)
add_subdirectory(tests)
set(CMAKE_BUILD_TYPE Debug)
Expand Down

0 comments on commit 41401db

Please sign in to comment.