Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed May 18, 2023
1 parent 3c437e2 commit d6e911a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ports/gsl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit d6e911a

Please sign in to comment.