Skip to content

Commit 1886fe0

Browse files
committed
fixing build for windows
1 parent 312c4fc commit 1886fe0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ project(libprlearn VERSION 1.0.0 LANGUAGES CXX)
66
if(NOT CMAKE_BUILD_TYPE)
77
set(CMAKE_BUILD_TYPE Release)
88
endif(NOT CMAKE_BUILD_TYPE)
9-
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wpedantic -static-libgcc -static-libstdc++")
10-
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG -Wall -Wpedantic -static-libgcc -static-libstdc++")
9+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wpedantic")
10+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG -Wall -Wpedantic")
1111

1212
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1313
set(CMAKE_CXX_STANDARD 17)

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ set_target_properties(prlearnStatic PROPERTIES OUTPUT_NAME prlearn)
1313

1414

1515
install(TARGETS prlearn
16+
RUNTIME DESTINATION bin
1617
LIBRARY DESTINATION lib
1718
ARCHIVE DESTINATION lib)
1819
install (FILES MLearning.h

0 commit comments

Comments
 (0)