Specify Raylib dep version in CMakeLists.txt

This commit is contained in:
Stephen Seo 2023-03-06 20:26:26 +09:00
parent ca2b545450
commit d79760aaa8

View file

@ -51,9 +51,9 @@ target_link_libraries(Triangles PUBLIC TrianglesLib)
target_compile_features(TrianglesLib PUBLIC cxx_std_17) target_compile_features(TrianglesLib PUBLIC cxx_std_17)
if(BUILD_SHARED_LIBS OR (UNIX AND NOT CYGWIN) OR (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")) if(BUILD_SHARED_LIBS OR (UNIX AND NOT CYGWIN) OR (CMAKE_CXX_COMPILER_ID MATCHES "MSVC"))
find_package(raylib REQUIRED) find_package(raylib 4.2 REQUIRED)
else() else()
find_package(raylib REQUIRED) find_package(raylib 4.2 REQUIRED)
endif() endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")