[CMake] Choosing between debug and release variants of third-party libraries

Philip Lowman philip at yhbt.com
Fri Nov 9 20:55:26 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Philip Lowman wrote:
> So you can't do something like this?
> 
> FIND_LIBRARY(qtmain_release qtmain
>    PATHS "C:/lang/qt/3.3.4r/lib" NO_DEFAULT_PATH)
> FIND_LIBRARY(qtmain_debug qtmain
>    PATHS "C:/lang/qt/3.3.4/lib" NO_DEFAULT_PATH)
> 
> # declare your targets.....
> 
> TARGET_LINK_LIBRARIES(foo release ${qtmain_release})
> TARGET_LINK_LIBRARIES(food debug ${qtmain_debug})

Sorry, what I meant was

TARGET_LINK_LIBRARIES(foo release ${qtmain_release})
TARGET_LINK_LIBRARIES(foo debug   ${qtmain_debug})

_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake

- --
Philip Lowman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNQ+Oe0tOktX6RKkRAljvAJ93FKOtiPHqjtN2x0X3KKBHYrOtLQCeJWgF
sRPGAk5fox3yUm183LtS3EM=
=jnFy
-----END PGP SIGNATURE-----


More information about the CMake mailing list