Skip to content

Commit

Permalink
Simplify test for yarn
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
pathmapper and m-kuhn committed Jan 6, 2022
1 parent b4ba782 commit 129c59d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions resources/CMakeLists.txt
Expand Up @@ -36,10 +36,7 @@ endif()

# Server landingpage webapp
if (WITH_SERVER_LANDINGPAGE_WEBAPP)
find_program(YARN yarn)
if(NOT YARN)
message(FATAL_ERROR "Yarn not found, required for server landingpage webapp!")
endif()
find_program(YARN yarn REQUIRED)

file(GLOB_RECURSE LANDINGPAGE_SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} server/src/landingpage/*)
set(LANDINGPAGE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/output/data/resources/server/src/landingpage)
Expand Down

0 comments on commit 129c59d

Please sign in to comment.