Skip to content

Commit

Permalink
Worhp no lib prefix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Mar 17, 2023
1 parent 8c4c06a commit 3d3ec12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions knitro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(knitro SHARED src/knitro.cpp include/knitro.h)

if(WIN32)
set_target_properties(${LIBRARY_NAME} PROPERTIES PREFIX "" IMPORT_PREFIX "")
set_target_properties(knitro PROPERTIES PREFIX "" IMPORT_PREFIX "")
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 4)
Expand All @@ -35,12 +35,6 @@ elseif(${CMAKE_GENERATOR} MATCHES "MSYS Makefiles")
set(RUNTIME_DIR bin/win${NBITS_TWO})
endif()

install(TARGETS ${LIBRARY_NAME} EXPORT knitroTargets
LIBRARY DESTINATION ${INSTALL_PREFIX}lib
ARCHIVE DESTINATION ${INSTALL_PREFIX}${ARCHIVE_DIR}
RUNTIME DESTINATION ${INSTALL_PREFIX}${RUNTIME_DIR})



install(TARGETS knitro EXPORT knitroTargets
LIBRARY DESTINATION ${INSTALL_PREFIX}lib
Expand Down
8 changes: 1 addition & 7 deletions worhp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(worhp SHARED src/worhp.cpp include/worhp.h)

if(WIN32)
set_target_properties(${LIBRARY_NAME} PROPERTIES PREFIX "" IMPORT_PREFIX "")
set_target_properties(worhp PROPERTIES PREFIX "" IMPORT_PREFIX "")
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 4)
Expand All @@ -35,12 +35,6 @@ elseif(${CMAKE_GENERATOR} MATCHES "MSYS Makefiles")
set(RUNTIME_DIR bin/win${NBITS_TWO})
endif()

install(TARGETS ${LIBRARY_NAME} EXPORT worhpTargets
LIBRARY DESTINATION ${INSTALL_PREFIX}lib
ARCHIVE DESTINATION ${INSTALL_PREFIX}${ARCHIVE_DIR}
RUNTIME DESTINATION ${INSTALL_PREFIX}${RUNTIME_DIR})


install(TARGETS worhp EXPORT worhpTargets
LIBRARY DESTINATION ${INSTALL_PREFIX}lib
ARCHIVE DESTINATION ${INSTALL_PREFIX}lib
Expand Down

0 comments on commit 3d3ec12

Please sign in to comment.