summaryrefslogtreecommitdiff
path: root/indra/cmake/SDL2.cmake
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-11-11 09:57:49 +0200
committerGitHub <noreply@github.com>2024-11-11 09:57:49 +0200
commit814d6d43f0720bda2e74a0ecedb560ad8fcf10a9 (patch)
tree3db2802f0ab39f2d7b1264e2ac1d3599f1a3bd5a /indra/cmake/SDL2.cmake
parenteccc9057d9d9799d3d5056bdfe255bd9e5e2be6a (diff)
parent32df877cd73b5b6a3672d0159c982077a4b67a9d (diff)
Merge pull request #3067 from secondlife/marchcat/c-develop
develop → Maint C sync
Diffstat (limited to 'indra/cmake/SDL2.cmake')
-rw-r--r--indra/cmake/SDL2.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/cmake/SDL2.cmake b/indra/cmake/SDL2.cmake
index 87195ed108..a464133f3f 100644
--- a/indra/cmake/SDL2.cmake
+++ b/indra/cmake/SDL2.cmake
@@ -12,11 +12,8 @@ use_prebuilt_binary( SDL2 )
find_library( SDL2_LIBRARY
NAMES SDL2
- PATHS "${LIBS_PREBUILT_DIR}/lib/release")
-if ( "${SDL2_LIBRARY}" STREQUAL "SDL2_LIBRARY-NOTFOUND" )
- message( FATAL_ERROR "unable to find SDL2_LIBRARY" )
-endif()
+ PATHS "${LIBS_PREBUILT_DIR}/lib/release" REQUIRED)
target_link_libraries( ll::SDL2 INTERFACE "${SDL2_LIBRARY}" )
-target_include_directories( ll::SDL2 SYSTEM INTERFACE "${LIBS_PREBUILT_DIR}/include" )
+target_include_directories( ll::SDL2 SYSTEM INTERFACE "${LIBS_PREBUILT_DIR}/include/SDL2" )