Make sure to append the compile def

This commit is contained in:
Mathieu Malaterre 2011-12-21 09:53:08 +00:00
parent 0b7e0166a7
commit 3280dc344f
2 changed files with 44 additions and 43 deletions

View File

@ -52,7 +52,6 @@ TARGET_LINK_LIBRARIES(openjpip_server ${FCGI_LIBNAME} ${CURL_LIBRARIES})
SET_TARGET_PROPERTIES(openjpip_server
PROPERTIES COMPILE_FLAGS "-DSERVER")
# Install library
INSTALL(TARGETS openjpip_local
EXPORT OpenJPEGTargets

View File

@ -11,8 +11,10 @@ SET(OPJ_SERVER_SRCS
# Build executable
ADD_EXECUTABLE(opj_server ${OPJ_SERVER_SRCS})
TARGET_LINK_LIBRARIES(opj_server openjpip_server ${FCGI_LIBNAME})
SET_TARGET_PROPERTIES(opj_server
PROPERTIES COMPILE_FLAGS "-DSERVER -DQUIT_SIGNAL=\\\"quitJPIP\\\""
SET_PROPERTY(
TARGET opj_server
APPEND PROPERTY
COMPILE_DEFINITIONS SERVER QUIT_SIGNAL="quitJPIP"
)
# On unix you need to link to the math library: