Address review comments

This commit is contained in:
Simon Perkins 2023-05-18 16:06:27 +02:00
parent 3c437e232f
commit d6e911a87b
1 changed files with 1 additions and 2 deletions

View File

@ -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}")