[CMake] Linking to .a files under AIX

2009-12-15 Thread jens persson
Hello I have a problem with linking to dynamic libraries on AIX: A target (target_a) needs to link to a external dynamic library (xerces) that I use find_library() to find. Something along these lines: find_library(XERCES NAMES libxerces-c2_7_0.a PATHS ${LIB_PATH} ) add_executable(target_a

Re: [CMake] Linking to .a files under AIX

2009-12-15 Thread jens persson
Hello again! I found my error and have fixed it, documenting it here to aid the next person encountering it. I need to override the linker flags to remove the -bexpall flag and doing so I had accidentaly removed the -bnoipath option to so changing the lines: