CMake Fix for non MSVC Installs

The return function is causing Data/CMakeLists.txt to exit early before they include sub directories.
i.e Data/MySQL Data/ODBC  Data/SQLite

http://www.cmake.org/cmake/help/v3.0/command/return.html
This commit is contained in:
Torndeco 2015-06-05 03:04:08 +01:00
parent 348ffed548
commit 0859133d47

View File

@ -251,8 +251,10 @@ install(
INCLUDES DESTINATION include
)
if (MSVC)
# install the targets pdb
POCO_INSTALL_PDB(${target_name})
POCO_INSTALL_PDB(${target_name})
endif()
endmacro()
@ -264,9 +266,6 @@ endmacro()
#
# This is an internal macro meant only to be used by POCO_INSTALL.
macro(POCO_INSTALL_PDB target_name)
if (NOT MSVC)
return()
endif()
get_property(type TARGET ${target_name} PROPERTY TYPE)
if ("${type}" STREQUAL "SHARED_LIBRARY" OR "${type}" STREQUAL "EXECUTABLE")