Skip to content

Commit dfbac81

Browse files
authored
sdl2 config fix
1 parent 32e2a1b commit dfbac81

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set(CMAKE_CXX_STANDARD 11)
44
set(CMAKE_CXX_EXTENSIONS NO)
55

66
find_package(SDL2 CONFIG REQUIRED)
7+
# ix buggy sdl2: https://stackoverflow.com/questions/45730098/cmake-leading-or-trailing-whitespace-policy-cmp0004
8+
string(STRIP ${SDL2_LIBRARIES} SDL2_LIBRARIES)
79

810
add_library(cppsid STATIC ${CMAKE_SOURCE_DIR}/src/libcsidlight.c ${CMAKE_SOURCE_DIR}/src/cppsid.cpp)
911
target_link_libraries(cppsid PRIVATE ${SDL2_LIBRARIES})

0 commit comments

Comments
 (0)