[CMake] string(TOUPPER ...) problems
ope
ope-devel at gmx.de
Tue Aug 14 13:17:47 EDT 2007
Hi,
I get the error
CMake Error: Error in cmake code at
.../CMakeLists.txt:295:
STRING no output variable specified
by this peace of code:
set (requiredPackages
ZLIB
BZip2
XercesC
CURL
Log4cxx
)
foreach (package ${requiredPackages})
find_package(${package} REQUIRED)
include_directories(${${package}_INCLUDE_DIRS})
string(TOUPPER ${${package}_LIBRARIES} PACKAGE_LIBRARIES)
link_directories(${PACKAGE_LIBRARIES})
target_link_libraries(${app_name} ${PACKAGE_LIBRARIES})
endforeach()
Imo there is an output variable of course. Anyway, I have to work around
the upper/lower case depencies from FindXXX naming ...
How to solve this?
Thanks
Olaf
More information about the CMake
mailing list