diff options
| author | Silvio Traversaro <pegua1@gmail.com> | 2017-07-21 10:48:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-21 10:48:20 +0200 |
| commit | 0c117ea3db646d2b1fe5979faf4f4c9c6e44b9f9 (patch) | |
| tree | 49c04dc2965be5cb2dcf7e41921f51cda1285516 | |
| parent | a42da34a07187063da297b422a95dbb2d7bd064a (diff) | |
| download | vcpkg-0c117ea3db646d2b1fe5979faf4f4c9c6e44b9f9.tar.gz vcpkg-0c117ea3db646d2b1fe5979faf4f4c9c6e44b9f9.zip | |
[gsl] Add a "d" debug postfix
See https://github.com/Microsoft/vcpkg/issues/1196#issuecomment-305751793 for details
| -rw-r--r-- | ports/gsl/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ports/gsl/CMakeLists.txt b/ports/gsl/CMakeLists.txt index 45abb5bd2..eb38a4431 100644 --- a/ports/gsl/CMakeLists.txt +++ b/ports/gsl/CMakeLists.txt @@ -48,6 +48,10 @@ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/gsl_types.h "${GSLTYPES_H}") file(GLOB_RECURSE PUBLIC_HEADERS gsl*.h) list(APPEND PUBLIC_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/gsl_types.h) +# The debug libraries have a "d" postfix so that CMake's FindGSL.cmake +# module can distinguish between Release and Debug libraries +set(CMAKE_DEBUG_POSTFIX "d") + add_library(gslcblas ${CBLAS_SOURCES}) set_target_properties(gslcblas PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON) @@ -74,4 +78,4 @@ install(TARGETS gsl gslcblas LIBRARY DESTINATION lib ARCHIVE DESTINATION lib ${TARGET_INSTALL_OPTIONS} -)
\ No newline at end of file +) |
