Skip to content

Commit 798b4c3

Browse files
Fix CMake template by @penggrin12 and @stalker57241 (#437)
* Fix CMake template by @penggrin12 Fixes #436 * Update projects/CMake/CMakeLists.txt Co-authored-by: stalker320 <40300537+stalker57241@users.noreply.github.com> --------- Co-authored-by: stalker320 <40300537+stalker57241@users.noreply.github.com>
1 parent 3183035 commit 798b4c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎projects/CMake/CMakeLists.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818
find_package(raylib_cpp QUIET)
1919
if (NOT raylib_cpp_FOUND)
2020
if (NOT DEFINED RAYLIB_CPP_VERSION)
21-
set(RAYLIB_CPP_VERSION v6.0.0)
21+
set(RAYLIB_CPP_VERSION master)
2222
endif()
2323
include(FetchContent)
2424
FetchContent_Declare(
@@ -33,7 +33,7 @@ endif()
3333
set(SOURCES main.cpp)
3434
add_executable(${PROJECT_NAME} ${SOURCES})
3535
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 11)
36-
target_link_libraries(${PROJECT_NAME} PUBLIC raylib INTERFACE raylib_cpp)
36+
target_link_libraries(${PROJECT_NAME} PUBLIC raylib PUBLIC raylib_cpp)
3737

3838
# Web Configurations
3939
if ("${PLATFORM}" STREQUAL "Web")

0 commit comments

Comments
 (0)