Fixed Cflags variable in pkgconfig file.
This commit is contained in:
parent
cd9ac605ec
commit
bc5471a2f8
@ -580,6 +580,9 @@ SET(PC_FILENAME "${LIBNAME}.pc")
|
||||
IF(FREEGLUT_GLES)
|
||||
SET(PC_CFLAGS "-DFREEGLUT_GLES")
|
||||
ENDIF()
|
||||
IF(FREEGLUT_BUILD_STATIC_LIBS)
|
||||
LIST(APPEND PC_CFLAGS -DFREEGLUT_STATIC)
|
||||
ENDIF()
|
||||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/freeglut.pc.in ${CMAKE_BINARY_DIR}/freeglut.pc @ONLY)
|
||||
INSTALL(FILES ${CMAKE_BINARY_DIR}/freeglut.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/ RENAME ${PC_FILENAME} COMPONENT Devel)
|
||||
# TODO: change the library and .pc name when building for GLES,
|
||||
|
Reference in New Issue
Block a user