mirror of https://github.com/microsoft/vcpkg.git
Address review comments
This commit is contained in:
parent
3c437e232f
commit
d6e911a87b
|
|
@ -41,9 +41,8 @@ endforeach()
|
|||
|
||||
file(READ gsl_types.h GSLTYPES_H)
|
||||
if(WIN32)
|
||||
string(REPLACE "#ifdef WIN32" "#if 1 /*WIN32*/" GSLTYPES_H "${GSLTYPES_H}")
|
||||
if(BUILD_SHARED_LIBS)
|
||||
string(REPLACE "# ifdef GSL_DLL" "# if 1 /*GSL_DLL*/" GSLTYPES_H "${GSLTYPES_H}")
|
||||
target_compile_definitions(gsl PRIVATE GSL_DLL)
|
||||
endif()
|
||||
endif(WIN32)
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/gsl_types.h "${GSLTYPES_H}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue