Great!
A while ago I tried to cross-compile code for win32 with mingw from linux
and ran into the same problem with the library PREFIX and SUFFIX. Setting
the PREFIX and SUFFIX globally works great, cross-compiling now works good
for my project (and much faster than the native compile with mingw
My setup:
Project/CMakeLists.txt:
ADD_SUBDIRECTORY(dir)
LINK_LIBRARIES(mylib)
ADD_EXECUTABLE(myexec main.c)
Project/dir/CMakeLists.txt:
ADD_LIBRARY(mylib lib.c)
SET_TARGET_PROPERTIES(mylib
PROPERTIES
My setup:
Project/CMakeLists.txt:
ADD_SUBDIRECTORY(dir)
LINK_LIBRARIES(mylib)
ADD_EXECUTABLE(myexec main.c)
Project/dir/CMakeLists.txt:
ADD_LIBRARY(mylib lib.c)
SET_TARGET_PROPERTIES(mylib
PROPERTIES
PREFIX
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Kishore, Jonnalagadda (IE10)
Sent: Wednesday, March 21, 2007 1:28 AM
To: cmake@cmake.org
Subject: [CMake] LINK_LIBRARIES() does not respect SUFFIX/PREFIX
My setup:
Project/CMakeLists.txt