1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Fix inverted bool logic

This commit is contained in:
Elias Steurer 2021-09-26 18:10:53 +02:00
parent 0ed4461e35
commit 75173c45b5
3 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ target_link_libraries(
if(${TESTS_ENABLED})
add_executable(tst_ScreenPlay tests/tst_main.cpp)
target_link_libraries(tst_ScreenPlay PRIVATE ScreenPlayLib Qt5::Test)
target_link_libraries(tst_ScreenPlay PRIVATE ScreenPlayLib Qt5::Test)
endif()
add_executable(${PROJECT_NAME} main.cpp)

View File

@ -102,7 +102,7 @@ Settings::Settings(const std::shared_ptr<GlobalVariables>& globalVariables,
setupWidgetAndWindowPaths();
setGitBuildHash(COMPILE_INFO);
setSteamVersion((QString(SCREENPLAY_STEAM).compare("OFF", Qt::CaseInsensitive) ? false : true));
setSteamVersion(!(QString(SCREENPLAY_STEAM).compare("OFF", Qt::CaseInsensitive) ? false : true));
}
/*!

View File

@ -91,7 +91,7 @@ if(APPLE)
COMMENT "Copying steam library into ScreenPlay.app bundle"
COMMAND ${CMAKE_COMMAND} -E copy ${steam_bin} ${workshop_install_dir})
if(NOT ${SCREENPLAY_STEAM})
if(${SCREENPLAY_STEAM})
add_custom_command(
TARGET workshopplugin
POST_BUILD
@ -100,7 +100,7 @@ if(APPLE)
endif()
else()
if(NOT ${SCREENPLAY_STEAM})
if(${SCREENPLAY_STEAM})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/steam_appid.txt ${CMAKE_BINARY_DIR}/bin/steam_appid.txt COPYONLY)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qmldir ${WORKSHOP_PLUGIN_DIR}/qmldir COPYONLY)