Skip to content

Commit

Permalink
cmake: remove hardcoded path to portlibs/switch
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam authored and flyinghead committed Dec 13, 2023
1 parent 99031e2 commit 32502e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ if(NINTENDO_SWITCH)
if(LIBRETRO)
add_library(${PROJECT_NAME} STATIC core/emulator.cpp)
target_compile_definitions(${PROJECT_NAME} PRIVATE LIBRETRO HAVE_LIBNX HAVE_OPENGL HAVE_OIT)
find_path(GLEXT_H_INCLUDE_DIR NAMES GL/glext.h REQUIRED)
target_include_directories(${PROJECT_NAME} PRIVATE ${GLEXT_H_INCLUDE_DIR})
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "flycast_libretro_libnx")
set(CMAKE_STATIC_LIBRARY_PREFIX "")
else()
Expand Down Expand Up @@ -245,7 +247,7 @@ if(LIBRETRO)
target_include_directories(${PROJECT_NAME} PRIVATE shell/libretro)
endif()
if(NINTENDO_SWITCH)
target_include_directories(${PROJECT_NAME} PRIVATE shell/switch "${DEVKITPRO}/portlibs/switch/include")
target_include_directories(${PROJECT_NAME} PRIVATE shell/switch)
endif()

if(NOT LIBRETRO)
Expand Down

0 comments on commit 32502e7

Please sign in to comment.