[devel] Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set in CMakeLists.txt

(Clifford Yap)
This commit is contained in:
Glenn Randers-Pehrson 2011-08-17 09:02:07 -05:00
parent 9d824eb166
commit e61e403d20
3 changed files with 13 additions and 0 deletions

View File

@ -63,6 +63,8 @@ Version 1.5.5beta05 [August 17, 2011]
pngpriv.h (functions yet to be implemented).
Version 1.5.5beta06 [August 17, 2011]
Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set in CMakeLists.txt
(Clifford Yap)
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit

View File

@ -3547,6 +3547,8 @@ Version 1.5.5beta05 [August 17, 2011]
pngpriv.h (functions yet to be implemented).
Version 1.5.5beta06 [August 17, 2011]
Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set in CMakeLists.txt
(Clifford Yap)
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -213,6 +213,15 @@ if(PNG_TESTS AND PNG_SHARED)
add_test(pngtest ./pngtest ${CMAKE_CURRENT_SOURCE_DIR}/pngtest.png)
endif()
# Ensure the CMAKE_LIBRARY_OUTPUT_DIRECTORY is set
IF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
IF(WIN32)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "bin")
ELSE(WIN32)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY "lib")
ENDIF(WIN32)
ENDIF(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
#
# Set a variable with CMake code which:
# Creates a symlink from src to dest (if possible) or alternatively