mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 12:09:00 +08:00
[gsl] Add a "d" debug postfix
See https://github.com/Microsoft/vcpkg/issues/1196#issuecomment-305751793 for details
This commit is contained in:
parent
a42da34a07
commit
0c117ea3db
@ -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}
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user