Skip to content

Commit e5c5f13

Browse files
committed
Correctly initialize JINJA2CPP_BUILD_TESTS variable
It should be true by default if we're building Jinja2Cpp as the main CMake project, else (as a dependency of an upper cmake project) should be false by default.
1 parent 7171e60 commit e5c5f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set(BOOST_CMAKE_LIBRARIES filesystem algorithm variant optional CACHE INTERNAL "
2929
add_subdirectory(thirdparty/boost EXCLUDE_FROM_ALL)
3030
add_subdirectory(thirdparty/nonstd EXCLUDE_FROM_ALL)
3131

32-
if(CMAKE_SOURCEDIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
32+
if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
3333
set(JINJA2CPP_IS_MAIN_PROEJCT TRUE)
3434
else()
3535
set(JINJA2CPP_IS_MAIN_PROEJCT FALSE)

0 commit comments

Comments
 (0)