Skip to content

Commit

Permalink
Fix build with CMake 3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Aug 4, 2020
1 parent 5ac8c83 commit 29290b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/CMakeLists.txt
Expand Up @@ -594,9 +594,9 @@ SET(QGIS_CORE_SRCS
)

FILE(GLOB JSON_HELP_FILES "${CMAKE_SOURCE_DIR}/resources/function_help/json/*")
IF(NOT USING_NINJA)
IF(CMAKE_VERSION VERSION_LESS "3.18" AND NOT USING_NINJA)
STRING(REPLACE "$" "$$" JSON_HELP_FILES "${JSON_HELP_FILES}")
ENDIF(NOT USING_NINJA)
ENDIF(CMAKE_VERSION VERSION_LESS "3.18" AND NOT USING_NINJA)
STRING(REPLACE "\(" "\\(" JSON_HELP_FILES "${JSON_HELP_FILES}")
STRING(REPLACE "\)" "\\)" JSON_HELP_FILES "${JSON_HELP_FILES}")
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/qgsexpression_texts.cpp
Expand Down

0 comments on commit 29290b8

Please sign in to comment.