Skip to content

Commit

Permalink
fix release build
Browse files Browse the repository at this point in the history
  • Loading branch information
stohrendorf committed Feb 13, 2021
1 parent 4946719 commit 5eabe40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions cmake/FindPython3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,16 @@ function( copy_python3_deps target )
if( WIN32 )
get_target_property( _bin_dir ${target} BINARY_DIR )

add_custom_command(
TARGET ${target}
POST_BUILD
COMMENT "Copy ${Python3_DLL}"
COMMAND ${CMAKE_COMMAND} -E copy ${Python3_DLL} ${_bin_dir}
)

add_custom_target(
${target}-python3-deps
COMMENT "Copy ${Python3_DLL} and lib dir"
COMMAND ${CMAKE_COMMAND} -E copy ${Python3_DLL} ${_bin_dir}
COMMENT "Copy Python3 lib dir"
)

foreach( _file ${Python3_LIB_FILES} )
Expand Down
2 changes: 1 addition & 1 deletion src/engine/objects/laraobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LaraObject final : public ModelObject
#ifndef NDEBUG
bool m_cheatDive = false;
#else
constexpr bool m_cheatDive = false;
static constexpr bool m_cheatDive = false;
#endif

public:
Expand Down

0 comments on commit 5eabe40

Please sign in to comment.