Skip to content

Commit f673902

Browse files
committed
Corrected if conditions in CMake build scripts
1 parent ea04817 commit f673902

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packaging/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/sqlite_orm DESTINATION ${CMAKE_I
3232
# note that there is no convention for the install location of module source files at the time of writing.
3333
# the module source file will get installed to subfolder "${SQLITE_ORM_INSTALL_CMAKEDIR}/src" following Craig Scott's [writeup](https://crascit.com/2024/04/04/cxx-modules-cmake-shared-libraries/#h-installing-shared-libraries-with-c-20-modules).
3434
# also see @starball's detailed stackoverflow [answer](https://stackoverflow.com/a/78209338/279251).
35-
if(CMAKE_VERSION GREATER_EQUAL 3.28.2)
35+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.28.2)
3636
install(TARGETS sqlite_orm
3737
FILE_SET CXX_MODULES
3838
DESTINATION ${SQLITE_ORM_INSTALL_CMAKEDIR}/src

tests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FetchContent_MakeAvailable(Catch2)
66
option(SQLITE_ORM_OMITS_CODECVT "Omits codec testing" OFF)
77

88

9-
if(SQLITE_ORM_ENABLE_CXX_23 AND CMAKE_VERSION GREATER_EQUAL 3.28.2 AND MSVC and MSVC_VERSION GREATER_EQUAL 1930)
9+
if(SQLITE_ORM_ENABLE_CXX_23 AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.28.2 AND MSVC AND MSVC_VERSION GREATER_EQUAL 1930)
1010
add_executable(module_tests
1111
named_module.cpp
1212
)

0 commit comments

Comments
 (0)