Skip to content

Commit 3233456

Browse files
committed
CMake: add CMAKE_BUILD_TYPE for properly linkage
1 parent a3d92ea commit 3233456

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17")
1717
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
1818
#set(CMAKE_CXX_EXTENSIONS OFF)
1919

20+
if(NOT CMAKE_BUILD_TYPE)
21+
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
22+
endif()
23+
2024
add_definitions(-D_MT -D_CPPUNWIND -DPURE_DYNAMIC_CAST -DDECLARE_SPECIALIZATION -DM_NOSTDCONTAINERS_EXT -DUSE_OGL)
2125

2226
set(LUA_INCLUDE_DIR Externals/LuaJIT/src)

Externals/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
add_subdirectory(LuaJIT)
22
add_subdirectory(luabind)
3-
#add_subdirectory(lzo)
43
add_subdirectory(cximage)
4+
#add_subdirectory(lzo)
55
#add_subdirectory(NVTT)
66
add_subdirectory(OPCODE)
77
add_subdirectory(ode)

src/xrCore/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
3030
#this is a temporary solution until find_package will not be fixed
3131
set(TBB_LIBRARIES tbb tbbmalloc_proxy tbbmalloc)
3232

33-
target_link_libraries(${PROJECT_NAME} xrMiscMath ${SDL_LIBRARIES} ${LZO_LIBRARY} ${CRYPTO++_LIBRARIES} ${PUGIXML_LIBRARY} ${TBB_LIBRARIES})
33+
target_link_libraries(${PROJECT_NAME} xrMiscMath ${SDL_LIBRARIES} ${LZO_LIBRARIES} ${CRYPTO++_LIBRARIES} ${PUGIXML_LIBRARY} ${TBB_LIBRARIES})

0 commit comments

Comments
 (0)